I want to extract all images from pdf, i use iTextSharp to extract images , then i use FreeImageAPI to get image from pdf byte[] image, this is part of the code: