PdfImagesExtractorExtractImagesAsync(String, Int32, Int32, CancellationToken) Method
Asynchronously extracts images from a range of pages of a PDF file to image objects
Namespace: Winnovative.Pdf.NextAssembly: Winnovative.Pdf.Next.PdfProcessor (in Winnovative.Pdf.Next.PdfProcessor.dll) Version: 20.0.0
public Task<ExtractedImage[][]> ExtractImagesAsync(
string pdfFile,
int startPageNumber,
int endPageNumber,
CancellationToken ct = default
)
- pdfFile String
- Full path of the PDF file from which to extract images
- startPageNumber Int32
- Start page number
- endPageNumber Int32
- End page number
- ct CancellationToken (Optional)
-
A cancellation token that can be used to cancel the asynchronous operation. When cancellation
is requested the task returned by this method will complete by throwing
OperationCanceledException as soon as possible
TaskExtractedImage
An array of arrays of ExtractedImage objects.
Each element in the outer array represents a page in the PDF document
and each inner array contains the images extracted from that page.
For example, images[1] returns all images
extracted from the second page and images[1][2] is the third image from the second page