How a form field looks, drawn by whoever knows what it should look like: the writer asks for each state it needs once, and draws it
into an appearance stream of its own at PixelsPerPoint.
public interface IPdfFormAppearance
| Properties |
|
| PixelsPerPoint |
The layout units per point the appearance is drawn in. The canvases passed to the paint methods use it, so a field’s border, padding and font stay sized consistently with the page it sits on. |
| Methods |
|
| PaintCheckbox(Canvas, Size, bool) |
Draws a check box, with its check mark when isChecked. |
| PaintRadio(Canvas, Size, bool) |
Draws a radio button, with its inner dot when isSelected. |
| PaintText(Canvas, Size, string, bool, Nullable<int>, bool) |
Draws a text field (or a drop-down’s selected label): its border and background, then text. The text must be drawn between BeginVariableText() and EndVariableText(), so a reader that regenerates the field once it is edited replaces exactly that. |
| TextFontSizePoints(Size, bool, bool) |
The size in points of the font a text appearance of this size draws with; written as the field’s default appearance. |