GetNextImage

GetNextImage(string)

Retreives next image from PDF document. Note: ExtractImage must be called before using of this method.

public bool GetNextImage(string outputFile)
Parameter Type Description
outputFile String File where image will be stored

Return Value

True is image is successfully extracted

Examples

PdfExtractor extractor = new PdfExtractor();
extractor.BindPdf("sample.pdf");
extractor.ExtractImage();
int i = 1;
while (extractor.HasNextImage())
{
    extractor.GetNextImage("image-" + i +".pdf");
}

See Also


GetNextImage(string, ImageFormat)

Retreives next image from PDF document with given image format. Note: ExtractImage must be called before using of this method.

public bool GetNextImage(string outputFile, ImageFormat format)
Parameter Type Description
outputFile String File where image will be stored
format ImageFormat The format of the image.

Return Value

True is image is successfully extracted

See Also


GetNextImage(Stream, ImageFormat)

Retreive next image from PDF file and stores it into stream with given image format.

public bool GetNextImage(Stream outputStream, ImageFormat format)
Parameter Type Description
outputStream Stream Stream where image data will be saved
format ImageFormat The format of the image.

Return Value

True in case the image is successfully extracted.

See Also


GetNextImage(Stream)

Retreive next image from PDF file and stores it into stream.

public bool GetNextImage(Stream outputStream)
Parameter Type Description
outputStream Stream Stream where image data will be saved

Return Value

True in case the image is successfully extracted.

See Also