PdfImagesExtractorExtractImagesToFileAsync(String, Int32, Int32, String, String, CancellationToken) Method

Asynchronously extracts images from a range of pages of a PDF file to image files

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next.PdfProcessor (in HiQPdf.Next.PdfProcessor.dll) Version: 1.0.0
C#
public Task ExtractImagesToFileAsync(
	string pdfFile,
	int startPageNumber,
	int endPageNumber,
	string outputDirectory,
	string imageFileName,
	CancellationToken ct = default
)

Parameters

pdfFile  String
Full path of the PDF file from which to extract images
startPageNumber  Int32
Start page number
endPageNumber  Int32
End 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

Return Value

Task
A task that represents the asynchronous operation

See Also