Package-level declarations
Annotation API (with all available annotation types).
Types
Represents a generic annotation in the PDF document.
Handles all annotation related operations on the owning document. Retrieve it with com.pspdfkit.document.PdfDocument.getAnnotationProvider.
Abstract base class for PolygonAnnotation and PolylineAnnotation.
Abstract base-class of all markup annotations: TextMarkupAnnotation and RedactionAnnotation.
Represents a circle on the page.
Represents a free text annotation on the page. The annotation’s text color comes from the color property of Annotation.
Represents a freehand drawing on the page.
Represents a line on the page.
Link type of annotation either carrying an URI or a page destination.
Represents a note (shown as an icon) on the page.
Represents a closed polygon on a page.
Represents a polyline on the page. Polyline is similar to PolygonAnnotation but is not closed and supports LineEndTypes.
Abstract base-class of all shape annotations: LineAnnotation, SquareAnnotation, CircleAnnotation, PolygonAnnotation, PolylineAnnotation. Shape annotations can also be measurement annotations if created using the measurement tools included with the Measurement Tools license component.
Represents a square rendered on the page.
Represents a stamp or annotationBitmap annotation on the page.
Represents the appearance of a field in interactive forms. For form elements with text, the text color comes from the color property of Annotation. Use formElement to access associated FormElement.
Functions
Adds annotation to the owner PDF document, blocking until the operation completes.
Adds the provided annotation to the page via AnnotationProvider.addAnnotationToPage and exposes the result as a Completable.
Creates an annotation via AnnotationProvider.createAnnotationFromInstantJson as a Single.
Returns all annotations of passed types in this document, blocking until the operation completes.
Returns all annotations of passed types in the specified page range, blocking until the operation completes.
Returns all annotations of the given types for the entire document as an Observable, using AnnotationProvider.getAllAnnotationsOfType.
Returns annotations of the given types for the provided page range as an Observable, using AnnotationProvider.getAllAnnotationsOfType.
Returns annotation with certain object ID on the page if it exists, blocking until the operation completes.
Returns annotation with certain UUID on the page if it exists, blocking until the operation completes.
Returns a list of annotations on the page, blocking until the operation completes.
Returns all annotations on the given page as an Observable by bridging AnnotationProvider.getAnnotations.
Removes annotation from the document, blocking until the operation completes.