| java.lang.Object | |
| ↳ | com.pspdfkit.api.annotations.AnnotationProvider |
Handles all annotation related operations on the owning document. Retrieve it with getAnnotationProvider().
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AnnotationProvider(NativeDocument nativeDocument) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| JSONObject |
addAnnotationJson(JSONObject jsonAnnotation)
Add an annotation to the document.
| ||||||||||
| JSONArray |
getAnnotationsJson(int pageIndex)
Get all the annotations on the given page.
| ||||||||||
| void |
removeAnnotation(int pageIndex, long pdfObjectId)
Remove an annotation with the given PDF object ID.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Add an annotation to the document. For information on Annotation json format see JSON Format
| jsonAnnotation | The annotation to add. |
|---|
Get all the annotations on the given page. The format of the annotation Json can be found at https://pspdfkit.com/guides/server/current/server-api/json-format/
| pageIndex | The page index to get annotations for. |
|---|
Remove an annotation with the given PDF object ID.
| pageIndex | The page index where the annotation is located. |
|---|---|
| pdfObjectId | Object ID of the annotation to remove. |