DocumentFind Method (TextFindCriteria, IGlyphComparer, Boolean)
Find text in this document.

Namespace:  TallComponents.PDF
Assembly:  TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version:
public TextMatchEnumerator Find(
	TextFindCriteria findCriteria,
	IGlyphComparer glyphComparer,
	bool transformGlyphs


Type: TallComponents.PDF.TextExtractionTextFindCriteria
Specifies find criteria.
Type: TallComponents.PDF.TextExtractionIGlyphComparer
The custom glyph comparer.
Type: SystemBoolean
If true, each glyph is transformed with the page transformation (orientation) before de glyph comparer is applied.

Return Value

Type: TextMatchEnumerator
An enumerator that lets you enumerate over all TextMatch elements
An enumerator is returned, not a collection, because the next TextMatch is evaluated lazily.

If transformGlyphs is true, the glyphs are tranformed with the page transformation during sorting. This means that the compare function will see the glyph coordinates as if their origin is at the bottom left of the page view. If a page is rotated, the actual origin of the page will be in one of the other corners of the view. The returned glyphs however will contain the original glyphs coordinates, i.e. with respect to the page origin, not the view origin.

See Also