PdfExtractor.GetNextImage

GetNextImage(string)

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

public bool GetNextImage(string outputFile)
ParameterTypeDescription
outputFileStringFile 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)

Retrieves 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)
ParameterTypeDescription
outputFileStringFile where image will be stored
formatImageFormatThe format of the image.

Return Value

True is image is successfully extracted

See Also


GetNextImage(Stream, ImageFormat)

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

public bool GetNextImage(Stream outputStream, ImageFormat format)
ParameterTypeDescription
outputStreamStreamStream where image data will be saved
formatImageFormatThe format of the image.

Return Value

True in case the image is successfully extracted.

See Also


GetNextImage(Stream)

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

public bool GetNextImage(Stream outputStream)
ParameterTypeDescription
outputStreamStreamStream where image data will be saved

Return Value

True in case the image is successfully extracted.

See Also