Source code

Download source archive ↓

src/pypdf/annotations/__init__.py

1"""
2PDF specifies several annotation types which pypdf makes available here.
3
4The names of the annotations and their attributes do not reflect the names in
5the specification in all cases. For example, the PDF standard defines a
6'Square' annotation that does not actually need to be square. For this reason,
7pypdf calls it 'Rectangle'.
8
9At their core, all annotation types are DictionaryObjects. That means if pypdf
10does not implement a feature, users can easily extend the given functionality.
11"""
12
13
14from ._base import NO_FLAGS, AnnotationDictionary
15from ._markup_annotations import (
16    Ellipse,
17    FreeText,
18    Highlight,
19    Line,
20    MarkupAnnotation,
21    Polygon,
22    PolyLine,
23    Rectangle,
24    Text,
25)
26from ._non_markup_annotations import Link, Popup
27
28__all__ = [
29    "NO_FLAGS",
30    "AnnotationDictionary",
31    "Ellipse",
32    "FreeText",
33    "Highlight",
34    "Line",
35    "Link",
36    "MarkupAnnotation",
37    "PolyLine",
38    "Polygon",
39    "Popup",
40    "Rectangle",
41    "Text",
42]