Import or Export Forms
If you want to import or export forms with XFDF, you can use exportPDF
and importAnnotations
.
Import Forms
After the document is loaded, you can import the forms of XFDF with importFormAnnotations
, and the type of XFDF can be String or File
javascript
await docViewer.importAnnotations(xfdf)
Export Forms
After the document is loaded, you can export forms with exportFomrXfdf
as XFDF string.
javascript
const xfdfString = await docViewer.exportXfdf()