PeachDrawing.PDF

PdfAnnotationDefinition Class

An annotation to put on a page that is neither a link nor a form field: a highlight, a note, a stamp, a drawing. It says what kind of annotation it is, where it sits, what it holds, and how it looks.

public sealed class PdfAnnotationDefinition

Inheritance System.Object → PdfAnnotationDefinition

Properties  
AppearanceTransform The linear part of the transform that carries the upright appearance to where the annotation sits (translation left out), in the same y-down convention as Bounds, or null when it is not turned.
BorderWidth The width of the annotation’s border, in points, or null for the default.
Bounds Where the annotation sits, in points from the page’s top-left corner with y down: its box, or the bounding box of the drawn shape when it was turned.
Color The annotation’s color (its border, a note’s background, a highlight’s fill), or null.
Contents The text of the annotation (a note’s text, or a description of what it marks).
ContentSize The size, in points, the appearance is drawn at.
CreatedAt When the annotation was made, or null to leave it out.
EmbeddedFileName For a FileAttachment annotation, the FileName of a file the document embeds (EmbeddedFiles): the annotation points at that file, so it is not stored twice. Matched exactly.
IconName The name of a note’s or stamp’s icon (Comment, Approved...), or null.
InkStrokes The strokes of an ink annotation, each a run of points in points from the page’s top-left corner with y down.
InteriorColor The color that fills the inside of a closed shape, or null.
LineEnds The two ends of a line annotation, in points from the page’s top-left corner with y down; empty for any other kind.
Locked Whether the annotation cannot be deleted or moved.
ModifiedAt When the annotation was last changed, or null for the time it was written.
NoRotate Whether the annotation stays upright however the page is turned.
NotPrinted Whether the annotation is left out when the page is printed.
NoZoom Whether the annotation keeps its size however the page is zoomed.
Opacity The opacity the annotation is drawn with, from 0 to 1, or null for opaque.
PaintAppearance Draws the annotation’s appearance onto a canvas of ContentSize, or null for an annotation with none.
PixelsPerPoint The layout units per point the appearance is drawn at.
PopupBounds Where the window that shows Contents opens, in points from the page’s top-left corner with y down, or null to let the reader choose. Written as a linked Popup annotation, and only when there is text to show.
PopupOpen Whether the popup window starts open.
QuadPoints The regions a text markup annotation (a highlight, underline, strike-out or squiggly) covers, four points per region, in points from the page’s top-left corner with y down.
ReadOnly Whether the annotation cannot be edited.
Subject A short description of the annotation’s subject.
Subtype The annotation type as the PDF names it, without the slash: Highlight, Text, Square, Stamp, Ink...
Title The name of the person who made the annotation.
Vertices The vertices of a polygon or polyline annotation, in points from the page’s top-left corner with y down.