PeachDrawing.PDF

PdfAnnotationAppearance Class

Draws the appearance of the standard annotations - icons, text markup, outlined shapes, free text and stamps - so a caller needs no drawing code of its own, and so the annotation carries the appearance stream a PDF/A document requires of every annotation. Each method returns a callback to give as PaintAppearance; the callback draws in points, from the top-left corner of the annotation’s ContentSize, so leave PixelsPerPoint at 1.

public static class PdfAnnotationAppearance

Inheritance System.Object → PdfAnnotationAppearance

Properties  
DefaultIconColor The color a note or an attached-file icon is filled with when none is given.
Methods  
FreeText(string, Font, PaintColor, Size) Draws a box of text (FreeText): text on a pale background with a thin border.
Icon(PdfAnnotationIcon, Size, Nullable<PaintColor>) Draws icon filling a box of size points.
IconName(PdfAnnotationIcon) The name the PDF gives icon (the /Name of the annotation).
Ink(IReadOnlyList<IReadOnlyList<PaintPoint>>, PaintColor, double) Draws freehand strokes (Ink).
IsFileAttachmentIcon(PdfAnnotationIcon) Whether icon is one of the icons a file attachment annotation may use (the others belong to notes).
Line(PaintPoint, PaintPoint, PaintColor, double) Draws a straight line between two corners of the annotation box (Line).
Markup(string, IReadOnlyList<PaintPoint>, Rect, PaintColor) Draws a text markup annotation over the regions quadPoints names: a translucent fill for Highlight, a line under the text for Underline, a wavy one for Squiggly, a line through it for StrikeOut.
Outline(bool, Size, PaintColor, double) Draws the outline of a rectangle (Square) or its inscribed ellipse (Circle) filling size.
Stamp(string, Font, PaintColor, Size) Draws a rubber stamp: label in capitals inside a double border.