PdfToImageConverterConvertToImageFilesAsync(Stream, String, String, CancellationToken) Method

Asynchronously converts all pages of a PDF document in a stream to image files

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next.PdfProcessor (in Winnovative.Pdf.Next.PdfProcessor.dll) Version: 20.0.0
C#
public Task ConvertToImageFilesAsync(
	Stream pdfStream,
	string outputDirectory,
	string imageFileName,
	CancellationToken ct = default
)

Parameters

pdfStream  Stream
Stream containing the PDF document to be converted
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