Class Annotation
- Namespace
- UglyToad.PdfPig.Annotations
- Assembly
- UglyToad.PdfPig.dll
An annotation on a page in a PDF document.
public class Annotation
- Inheritance
-
Annotation
- Inherited Members
Constructors
Annotation(DictionaryToken, AnnotationType, PdfRectangle, string, string, string, AnnotationFlags, AnnotationBorder, IReadOnlyList<QuadPointsQuadrilateral>, PdfAction, AppearanceStream, AppearanceStream, AppearanceStream, string, Annotation)
Create a new Annotation.
public Annotation(DictionaryToken annotationDictionary, AnnotationType type, PdfRectangle rectangle, string content, string name, string modifiedDate, AnnotationFlags flags, AnnotationBorder border, IReadOnlyList<QuadPointsQuadrilateral> quadPoints, PdfAction action, AppearanceStream normalAppearanceStream, AppearanceStream rollOverAppearanceStream, AppearanceStream downAppearanceStream, string appearanceState, Annotation inReplyTo)
Parameters
annotationDictionary
DictionaryTokentype
AnnotationTyperectangle
PdfRectanglecontent
stringname
stringmodifiedDate
stringflags
AnnotationFlagsborder
AnnotationBorderquadPoints
IReadOnlyList<QuadPointsQuadrilateral>action
PdfActionnormalAppearanceStream
AppearanceStreamrollOverAppearanceStream
AppearanceStreamdownAppearanceStream
AppearanceStreamappearanceState
stringinReplyTo
Annotation
Properties
Action
Action for this annotation, if any (can be null)
public PdfAction Action { get; }
Property Value
AnnotationDictionary
The underlying PDF dictionary which this annotation was created from.
public DictionaryToken AnnotationDictionary { get; }
Property Value
Border
Defines the annotation's border.
public AnnotationBorder Border { get; }
Property Value
Content
The annotation text, or if the annotation does not display text, a description of the annotation's contents. Optional.
public string Content { get; }
Property Value
Flags
Flags defining the appearance and behaviour of this annotation.
public AnnotationFlags Flags { get; }
Property Value
HasDownAppearance
Indicates if a down appearance is present for this annotation (shown when you click on this annotation)
public bool HasDownAppearance { get; }
Property Value
HasNormalAppearance
Indicates if a normal appearance is present for this annotation
public bool HasNormalAppearance { get; }
Property Value
HasRollOverAppearance
Indicates if a roll over appearance is present for this annotation (shown when you hover over this annotation)
public bool HasRollOverAppearance { get; }
Property Value
InReplyTo
The Annotation this annotation was in reply to. Can be null
public Annotation InReplyTo { get; }
Property Value
ModifiedDate
The date and time the annotation was last modified, can be in any format. Optional.
public string ModifiedDate { get; }
Property Value
Name
The name of this annotation which should be unique per page. Optional.
public string Name { get; }
Property Value
QuadPoints
Rectangles defined using QuadPoints, for Link these are the regions used to activate the link, for text markup annotations these are the text regions to apply the markup to. See Points for more information regarding the order of the points.
public IReadOnlyList<QuadPointsQuadrilateral> QuadPoints { get; }
Property Value
Rectangle
The rectangle in user space units specifying the location to place this annotation on the page.
public PdfRectangle Rectangle { get; }
Property Value
Type
The type of this annotation.
public AnnotationType Type { get; }
Property Value
Methods
ToString()
public override string ToString()