PdfToTextConverterConvertToTextAsync(Byte, CancellationToken) Method

Asynchronously converts all pages in a PDF document to text

Definition

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

Parameters

pdfData  Byte
Memory buffer containing the PDF document to be converted
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

TaskString
Text extracted from the PDF document

See Also