PDFRasterizer.NET 4.0 is now available. Supports .NET Core. Renders pixel-perfectly.

Method Find

Namespace TallComponents.PDF
Class Page

Find text in this page.

An enumerator is returned, not a collection, because the next TextMatch is evaluated lazily.

If transformGlyphs is true, the glyphs are transformed 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.

Syntax

public TextMatchEnumerator Find(TextFindCriteria findCriteriaIGlyphComparer glyphComparerBoolean transformGlyphsSummary summary)

Returns

TextMatchEnumerator

An enumerator that lets you enumerate over all TextMatch elements

Parameters


TextFindCriteria findCriteria
Specifies find criteria.

IGlyphComparer glyphComparer
The custom glyph comparer. If null, glyphs are sorted by their positions.

Boolean transformGlyphs
If true, each glyph is transformed with the page transformation (orientation) before de glyph comparer is applied.

Summary summary
The summary to report messages to.
Download PDFKit.NET 5.0
We will send you a download link

  • This field is for validation purposes and should be left unchanged.
Why do we ask your email address?
We send tips that speed up your evaluation
We let you know about bug fixes
You can always unsubscribe with one click
We never share your address with a 3rd party
Thank you for your download

We have sent an email with a download link.