PdfToTextConverterConvertToTextAsync(Stream, Int32, CancellationToken) Method

Asynchronously converts the pages of a PDF document in a stream to text starting at a given page number through the end of the document

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next.PdfProcessor (in Winnovative.Pdf.Next.PdfProcessor.dll) Version: 20.0.0
C#
public Task<string> ConvertToTextAsync(
	Stream pdfStream,
	int startPageNumber,
	CancellationToken ct = default
)

Parameters

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

TaskString
Text extracted from the PDF document

See Also