PdfImagesExtractorExtractImagesToFileAsync(Byte, String, String, CancellationToken) Method

Asynchronously extracts images from all pages in a PDF document to image files

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next.PdfProcessor (in HiQPdf.Next.PdfProcessor.dll) Version: 1.0.0
C#
public Task ExtractImagesToFileAsync(
	byte[] pdfData,
	string outputDirectory,
	string imageFileName,
	CancellationToken ct = default
)

Parameters

pdfData  Byte
Memory buffer containing the PDF document from which to extract images
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