Table of Contents

Delegate TextFrame.Listener

Namespace
PDFjet.NET
Assembly
PDFjet.dll

Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit.

Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.

public delegate void TextFrame.Listener(TextLine line, float x, float y, TextLine source)

Parameters

line TextLine
Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit. Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.
x float
Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit. Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.
y float
Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit. Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.
source TextLine
Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit. Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.