PdfToTextConverterFindTextAsync(Stream, String, Int32, Int32, Boolean, Boolean, CancellationToken) Method
Asynchronously searches for the specified text in a range of pages of a PDF document in a stream
Namespace: Winnovative.Pdf.NextAssembly: Winnovative.Pdf.Next.PdfProcessor (in Winnovative.Pdf.Next.PdfProcessor.dll) Version: 20.0.0
public Task<FindTextLocation[]> FindTextAsync(
Stream pdfStream,
string textToFind,
int startPageNumber,
int endPageNumber,
bool caseSensitive,
bool wholeWord,
CancellationToken ct = default
)
- pdfStream Stream
- Stream containing the PDF document
- textToFind String
- Text to find
- startPageNumber Int32
- Start page number
- endPageNumber Int32
- End page number
- caseSensitive Boolean
- Flag indicating whether the search should match case
- wholeWord Boolean
- Flag indicating whether the search should match whole words
- 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
TaskFindTextLocationRecords containing the locations of the searched text in PDF pages