What is the recommended way to import/export annotations in PDF.js Express?

The recommended way to import/export anntotations are with the importAnnotations and exportAnnotations APIs.

An overview on import/export can be found here.

Hey @Logan I’ve been reading the documentation but it seems outdated. I have not been able to use an instance.Core as it says it does not exist. It appears the new way is to use instance.annotManager?

I’m referencing this document here: https://www.pdftron.com/documentation/web/guides/annotation/import-export/database/

Hi there,

That documentation is for the wrong product (that is for WebViewer and not Express).

The documentation you are looking for is here (https://pdfjs.express/documentation/annotation/import-export/database)

If you are using version 7.X make sure to change the version dropdown in the top left to 7.X.X.

Logan

Yes your right I didn’t know there was a version 8 out now. Thanks!