This documentation is deprecated and will no longer be updated. Please use the official documentation at vanillapdf.readthedocs.io.
Vanilla.PDF  2.3.0
Cross-platform toolkit for creating and modifying PDF documents
Classes | Enumerations

An annotation associates an object such as a note, sound, or movie with a location on a page of a PDF document, or provides a way to interact with the user by means of the mouse and keyboard. More...

Classes

class  PageAnnotationsHandle
 An array of annotation dictionaries that shall contain indirect references to all AnnotationHandle associated with the page. More...
 
class  AnnotationHandle
 An annotation associates an object such as a note, sound, or movie with a location on a page of a PDF document, or provides a way to interact with the user by means of the mouse and keyboard. More...
 
class  LinkAnnotationHandle
 A link annotation represents either a hypertext link to a DestinationHandle elsewhere in the document or an Action to be performed. More...
 
class  TextAnnotationHandle
 A text annotation represents a "sticky note" attached to a point in the PDF document. When closed, the annotation shall appear as an icon; when open, it shall display a pop-up window containing the text of the note in a font and size chosen by the conforming reader. More...
 
class  HighlightAnnotationHandle
 A highlight annotation appears as a highlight over a region of text in the document. When opened, it shall display a pop-up window containing the text of the associated note. More...
 
class  FreeTextAnnotationHandle
 A free text annotation (PDF 1.3) displays text directly on the page. Unlike an ordinary text annotation, a free text annotation has no open or closed state; instead, the text shall always be visible. More...
 
class  UnderlineAnnotationHandle
 An underline annotation appears as an underline beneath text in the document. When opened, it shall display a pop-up window containing the text of the associated note. More...
 
class  StrikeOutAnnotationHandle
 A strikeout annotation appears as a strikethrough line across text in the document. When opened, it shall display a pop-up window containing the text of the associated note. More...
 
class  SquigglyAnnotationHandle
 A squiggly annotation appears as a jagged underline beneath text in the document. When opened, it shall display a pop-up window containing the text of the associated note. More...
 
class  InkAnnotationHandle
 An ink annotation (PDF 1.3) represents a freehand "scribble" composed of one or more disjoint paths. When opened, it shall display a pop-up window containing the text of the associated note. More...
 

Enumerations

enum  AnnotationType {
  AnnotationType_Undefined = 0 , AnnotationType_Text , AnnotationType_Link , AnnotationType_FreeText ,
  AnnotationType_Line , AnnotationType_Square , AnnotationType_Circle , AnnotationType_Polygon ,
  AnnotationType_PolyLine , AnnotationType_Highlight , AnnotationType_Underline , AnnotationType_Squiggly ,
  AnnotationType_StrikeOut , AnnotationType_RubberStamp , AnnotationType_Caret , AnnotationType_Ink ,
  AnnotationType_Popup , AnnotationType_FileAttachment , AnnotationType_Sound , AnnotationType_Movie ,
  AnnotationType_Widget , AnnotationType_Screen , AnnotationType_PrinterMark , AnnotationType_TrapNetwork ,
  AnnotationType_Watermark , AnnotationType_TripleD , AnnotationType_Redaction
}
 Derived types of AnnotationHandle. More...
 
enum  AnnotationFlags {
  AnnotationFlags_None = 0 , AnnotationFlags_Invisible = 1 , AnnotationFlags_Hidden = 2 , AnnotationFlags_Print = 4 ,
  AnnotationFlags_NoZoom = 8 , AnnotationFlags_NoRotate = 16 , AnnotationFlags_NoView = 32 , AnnotationFlags_ReadOnly = 64 ,
  AnnotationFlags_Locked = 128 , AnnotationFlags_ToggleNoView = 256 , AnnotationFlags_LockedContents = 512
}
 Annotation flags controlling visibility and behavior. More...
 

Detailed Description

An annotation associates an object such as a note, sound, or movie with a location on a page of a PDF document, or provides a way to interact with the user by means of the mouse and keyboard.

For more details please visit section 12.5 - Annotations.

Enumeration Type Documentation

◆ AnnotationType

Derived types of AnnotationHandle.

Enumerator
AnnotationType_Undefined 

Undefined unitialized default value, triggers error when used.

AnnotationType_Text 

A text annotation represents a "sticky note" attached to a point in the PDF document.

AnnotationType_Link 

A link annotation represents either a hypertext link to a destination elsewhere in the document or an action to be performed

AnnotationType_FreeText 

A free text annotation (PDF 1.3) displays text directly on the page.

AnnotationType_Line 

The purpose of a line annotation (PDF 1.3) is to display a single straight line on the page.

AnnotationType_Square 

Square and circle annotations (PDF 1.3) shall display, respectively, a rectangle or an ellipse on the page.

AnnotationType_Circle 

Square and circle annotations (PDF 1.3) shall display, respectively, a rectangle or an ellipse on the page.

AnnotationType_Polygon 

Polygon annotations (PDF 1.5) display closed polygons on the page.

AnnotationType_PolyLine 

Polyline annotations (PDF 1.5) are similar to polygons, except that the first and last vertex are not implicitly connected.

AnnotationType_Highlight 

Text markup annotations shall appear as highlights, underlines, strikeouts (all PDF 1.3), or jagged ("squiggly") underlines (PDF 1.4) in the text of a document.

AnnotationType_Underline 

Text markup annotations shall appear as highlights, underlines, strikeouts (all PDF 1.3), or jagged ("squiggly") underlines (PDF 1.4) in the text of a document.

AnnotationType_Squiggly 

Text markup annotations shall appear as highlights, underlines, strikeouts (all PDF 1.3), or jagged ("squiggly") underlines (PDF 1.4) in the text of a document.

AnnotationType_StrikeOut 

Text markup annotations shall appear as highlights, underlines, strikeouts (all PDF 1.3), or jagged ("squiggly") underlines (PDF 1.4) in the text of a document.

AnnotationType_RubberStamp 

A rubber stamp annotation (PDF 1.3) displays text or graphics intended to look as if they were stamped on the page with a rubber stamp.

AnnotationType_Caret 

A caret annotation (PDF 1.5) is a visual symbol that indicates the presence of text edits.

AnnotationType_Ink 

An ink annotation (PDF 1.3) represents a freehand "scribble" composed of one or more disjoint paths.

AnnotationType_Popup 

A pop-up annotation (PDF 1.3) displays text in a pop-up window for entry and editing.

AnnotationType_FileAttachment 

A file attachment annotation (PDF 1.3) contains a reference to a file, which typically shall be embedded in the PDF file.

AnnotationType_Sound 

A sound annotation (PDF 1.2) shall be analogous to a text annotation except that instead of a text note, it contains sound recorded from the computer's microphone or imported from a file.

AnnotationType_Movie 

A movie annotation (PDF 1.2) contains animated graphics and sound to be presented on the computer screen and through the speakers.

AnnotationType_Widget 

Interactive forms use widget annotations (PDF 1.2) to represent the appearance of fields and to manage user interactions.

AnnotationType_Screen 

A screen annotation (PDF 1.5) specifies a region of a page upon which media clips may be played.

AnnotationType_PrinterMark 

A printer's mark annotation (PDF 1.4) represents a graphic symbol, such as a registration target,colour bar, or cut mark, that may be added to a page to assist production personnel in identifying components of a multiple-plate job and maintaining consistent output during production.

AnnotationType_TrapNetwork 

A trap network annotation (PDF 1.3) may be used to define the trapping characteristics for a page of a PDF document.

AnnotationType_Watermark 

A watermark annotation (PDF 1.6) shall be used to represent graphics that shall be printed at a fixed size and position on a page, regardless of the dimensions of the printed page.

AnnotationType_TripleD 

3D annotations (PDF 1.6) are the means by which 3D artwork shall be represented in a PDF document.

AnnotationType_Redaction 

A redaction annotation (PDF 1.7) identifies content that is intended to be removed from the document.

◆ AnnotationFlags

Annotation flags controlling visibility and behavior.

These flags may be combined using bitwise OR operations.

Enumerator
AnnotationFlags_None 

No flags set.

AnnotationFlags_Invisible 

If set, do not display the annotation if it does not belong to one of the standard annotation types and no annotation handler is available.

AnnotationFlags_Hidden 

If set, do not display or print the annotation or allow it to interact with the user, regardless of its annotation type or annotation handler.

AnnotationFlags_Print 

If set, print the annotation when the page is printed.

AnnotationFlags_NoZoom 

If set, do not scale the annotation's appearance to match the magnification of the page.

AnnotationFlags_NoRotate 

If set, do not rotate the annotation's appearance to match the rotation of the page.

AnnotationFlags_NoView 

If set, do not display the annotation on the screen or allow it to interact with the user.

AnnotationFlags_ReadOnly 

If set, do not allow the annotation to interact with the user.

AnnotationFlags_Locked 

If set, do not allow the annotation to be deleted or its properties modified.

AnnotationFlags_ToggleNoView 

If set, invert the interpretation of the NoView flag for certain events.

AnnotationFlags_LockedContents 

If set, do not allow the contents of the annotation to be modified.