PdfToTextConverterConvertToTextAsync(String, Int32, CancellationToken) Method
Asynchronously converts the pages of a PDF file to text starting at a given page number through the end of the document
Namespace: HiQPdf.NextAssembly: HiQPdf.Next.PdfProcessor (in HiQPdf.Next.PdfProcessor.dll) Version: 1.0.0
public Task<string> ConvertToTextAsync(
string pdfFile,
int startPageNumber,
CancellationToken ct = default
)
- pdfFile String
- Full path of the PDF file 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
TaskStringText extracted from the PDF document