PdfToImageConverterConvertToImagesAsync(String, Int32, Int32, CancellationToken) Method

Asynchronously converts a range of pages of a PDF file to image objects

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next.PdfProcessor (in Winnovative.Pdf.Next.PdfProcessor.dll) Version: 20.0.0
C#
public Task<PdfPageImage[]> ConvertToImagesAsync(
	string pdfFile,
	int startPageNumber,
	int endPageNumber,
	CancellationToken ct = default
)

Parameters

pdfFile  String
Full path of the PDF file to be converted
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

Return Value

TaskPdfPageImage
The images of the PDF pages

See Also