How to export PDF with custom {key : values} data in Annotation's XFDF string and import from it?

@pdftron/webviewer”: “^8.8.0”

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hi John,

Did you mean to export / import PDF or the XFDF string? To export / import the XFDF with custom data you can just use the API annotationManager.exportAnnotations and API annotationManager.importAnnotations. You will find the custom data in the exported XFDF string on an attribute called “trn-custom-data”.

To export / import PDF you can just use APIUI.downloadPdf and documentViewer.loadDocument.