Save just the outlines and annotations to the database

Product: PDFtron for angular

Product Version: 8.9.0

Please give a brief summary of your issue:
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
I want to save my outlines to the database without sending the full pdf file to the database.
Is there a method like import or export annotation which provides xfdf string for outlines created ?

Hello @pranay.s,

We do not have a method that would export the outlines to an XFDF string, but exporting outlines is possible.

Our PDFNet uses bookmarks, but they are referenced as outlines on WebViewer, and they are also embedded into the PDF itself.

You can create an outline via addRootBookmark seen in this guide:

Keep in mind that some of the namespaces in this guide are outdated (though we do have this on our backlog to update). In the meantime, you can find our migration guides here to help with verifying the correct namespaces: Migrating-to-v8 | Apryse Documentation

You would need to export the PDFNet Bookmark object and then call addRootBookmark when you import it on a different document. To do this, you can try using the getBookmarks() API, found here: Apryse WebViewer Class: Document

Let me know if this works for you!

Best Regards,
Jacob Romano Carlsen
Web Development Support Engineer
Apryse Software Inc.