Expand description
PDF annotation engine.
Provides typed access to all annotation types defined in ISO 32000-2 §12.5,
and annotation creation via the write feature (backed by lopdf).
Modules§
- appearance_
writer - Appearance stream generation for PDF annotations.
- builder
- Annotation builder for creating PDF annotations via lopdf.
- error
- Error types for annotation building.
Structs§
- Annotation
- A PDF annotation, wrapping the raw dictionary.
- Annotation
Flags - Annotation flags (ISO 32000-2 Table 175).
- Appearance
Dict - Wrapper for an annotation’s
/AP(appearance) dictionary. - Border
Effect - Border effect.
- Border
Style - Border style (ISO 32000-2 Table 168).
- Caret
Annotation - A caret annotation (ISO 32000-2 §12.5.6.18).
- File
Attachment Annotation - A FileAttachment annotation.
- Free
Text Annotation - A FreeText annotation.
- InkAnnotation
- An Ink (freehand drawing) annotation.
- Line
Annotation - A line annotation (ISO 32000-2 §12.5.6.7).
- Link
Annotation - A link annotation (ISO 32000-2 §12.5.6.5).
- Movie
Annotation - A Movie annotation.
- Polygon
Annotation - A Polygon or PolyLine annotation.
- Popup
Annotation - A popup annotation (ISO 32000-2 §12.5.6.14).
- Quad
Points - Quadrilateral points for text markup annotations.
- Sound
Annotation - A Sound annotation.
- Square
Circle Annotation - A Square or Circle annotation.
- Stamp
Annotation - A Stamp annotation.
- Text
Annotation - A text (sticky note) annotation.
- Text
Markup Annotation - A text markup annotation (Highlight, Underline, Squiggly, StrikeOut).
Enums§
- Action
- An action (ISO 32000-2 §12.6).
- Action
Type - Known PDF action types per ISO 32000-2 §12.6.4.
- Annotation
Type - The type of a PDF annotation (ISO 32000-2 Table 170).
- Border
Effect Style - Border effect style.
- Border
Style Type - Border style types.
- Color
- A color value.
- Destination
- A PDF destination (ISO 32000-2 §12.3.2) — a target location and
viewport recipe used by GoTo / GoToR actions and by direct
/Destlink entries. - Highlight
Mode - Link highlight mode.
- Line
Ending - Line ending styles (ISO 32000-2 Table 179).
- Stamp
Name - Standard rubber-stamp names per ISO 32000-2 Table 181.
- Text
Markup Type - The type of text markup.
Functions§
- parse_
destination - Parse a destination from an Object.
- pdf_
string_ to_ string - Convert a PDF string (possibly UTF-16BE with BOM) to a Rust
String.