PdfImagesExtractorExtractImagesToFileAsync(Stream, Int32, String, String, CancellationToken) Method
Asynchronously extracts images from the pages of a PDF document in a stream to image files starting at a given page number through the end of the document
Namespace: HiQPdf.NextAssembly: HiQPdf.Next.PdfProcessor (in HiQPdf.Next.PdfProcessor.dll) Version: 1.0.0
public Task ExtractImagesToFileAsync(
Stream pdfStream,
int startPageNumber,
string outputDirectory,
string imageFileName,
CancellationToken ct = default
)
- pdfStream Stream
- Stream containing the PDF document from which to extract images
- startPageNumber Int32
- Start page number
- outputDirectory String
- Output directory
- imageFileName String
- Output file name without extension
- 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
Task
A task that represents the asynchronous operation