Get annotations
GET http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/annotations?pageIndex=0
Export annotations
GET http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/annotations/content
Accept: application/xfdf
Import annotations
POST http://{host}:{port}/qoppapdf/v1/documents/mydir/otherdoc.pdf/annotations
Content-Type: application/xfdf
(xfdf file in message body)
Flatten annotations
POST http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf
(sample JSON in message body)
{
"FlattenAnnotationsAction": {
"paintNonPrintableAnnots": true,
"savePath": "flatAnnots/mydoc.pdf"
}
}