PdfToTextConverterExtractTextPositions(Stream, String, Boolean, Boolean) Method |
Searches for a text into a PDF document specified by a Stream.
Namespace: ExpertPdfAssembly: eppdftotext (in eppdftotext.dll) Version: 9.0
Syntaxpublic TextPosition[] ExtractTextPositions(
Stream pdfStream,
string textToSearch,
bool caseSensitive,
bool wholeWord
)
Public Function ExtractTextPositions (
pdfStream As Stream,
textToSearch As String,
caseSensitive As Boolean,
wholeWord As Boolean
) As TextPosition()
Parameters
- pdfStream Stream
- The binary stream providing the PDF document bytes. It can be for example a
FileStream to convert a PDF file to text or a MemoryStream to convert the PDF document
represented as an array of bytes to text.
- textToSearch String
- Text that is being search for in the PDF document.
- caseSensitive Boolean
- Specifies if the search is case sensitive.
- wholeWord Boolean
- Specifies if the search looks for whole words only or not.
Return Value
TextPositionAn array with all text positions that match the search conditions.
See Also