Click or drag to resize

PdfToTextConverterExtractTextPositions Method (Stream, String, Boolean, Boolean)

Searches for a text into a PDF document specified by a Stream.

Namespace:  ExpertPdf
Assembly:  eppdftotext (in eppdftotext.dll) Version: 7.0
Syntax
public TextPosition[] ExtractTextPositions(
	Stream pdfStream,
	string textToSearch,
	bool caseSensitive,
	bool wholeWord
)

Parameters

pdfStream
Type: System.IOStream
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
Type: SystemString
Text that is being search for in the PDF document.
caseSensitive
Type: SystemBoolean
Specifies if the search is case sensitive.
wholeWord
Type: SystemBoolean
Specifies if the search looks for whole words only or not.

Return Value

Type: TextPosition
An array with all text positions that match the search conditions.
See Also