diff options
Diffstat (limited to '.venv/lib/python3.12/site-packages/pypdf/annotations/__init__.py')
-rw-r--r-- | .venv/lib/python3.12/site-packages/pypdf/annotations/__init__.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/pypdf/annotations/__init__.py b/.venv/lib/python3.12/site-packages/pypdf/annotations/__init__.py new file mode 100644 index 00000000..3ddf9856 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/pypdf/annotations/__init__.py @@ -0,0 +1,45 @@ +""" +PDF specifies several annotation types which pypdf makes available here. + +The names of the annotations and their attributes do not reflect the names in +the specification in all cases. For example, the PDF standard defines a +'Square' annotation that does not actually need to be square. For this reason, +pypdf calls it 'Rectangle'. + +At their core, all annotation types are DictionaryObjects. That means if pypdf +does not implement a feature, users can easily extend the given functionality. +""" + + +from ._base import NO_FLAGS, AnnotationDictionary +from ._markup_annotations import ( + Ellipse, + FreeText, + Highlight, + Line, + MarkupAnnotation, + Polygon, + PolyLine, + Rectangle, + Text, +) +from ._non_markup_annotations import Link, Popup + +__all__ = [ + "NO_FLAGS", + # Export abstract base classes so that they are shown in the docs + "AnnotationDictionary", + "MarkupAnnotation", + # markup annotations + "Ellipse", + "FreeText", + "Highlight", + "Line", + "Link", + "Polygon", + "PolyLine", + "Rectangle", + "Text", + # Non-markup annotations + "Popup", +] |