I noticed today that I can export the annotations added to a PDF via the "Export Comments" menu option. Likewise I can import them. This is a great feature so that I can keep my original document in tack while saving the annotations to a smaller file. I haven't worked much with the entire SDK yet, but I'm in a real time crunch to update an application and without having the time to do much testing, I was hoping you might please answer these few questions.
1). Can I access this functionality to export/import comments (annotations) through code via the SDK? My idea is to tell the viewer the PDF filename to load and then load the separate annotations file if it exists.
2). Can I show/hide annotations on the PDF via the SDK? Ii'd like to have a button to simply allow the user to show/hide them.
3). I like all the toolbars and menus that I an place on the viewer. However, if I wanted to hide all of them and create my own toolbars, are all of the menu options available from code?
Thank you,
Nelson
Annotations
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Annotations
Hello Nelson,
1) You will need to use some JS as described in the "JavaScript for Acrobat API reference", but with it you can importAnFDF('patn_to_file'); and pretty much that's it.
2) You could remove all annotations (or store them) and then load them again using 1) .
3) You can create custom toolbars (using the available commands in the AX) and load them at install time of your application, as well as you can lock the toolbar area and not let the users modify the toolbars you have created.
Best,
Stefan
1) You will need to use some JS as described in the "JavaScript for Acrobat API reference", but with it you can importAnFDF('patn_to_file'); and pretty much that's it.
2) You could remove all annotations (or store them) and then load them again using 1) .
3) You can create custom toolbars (using the available commands in the AX) and load them at install time of your application, as well as you can lock the toolbar area and not let the users modify the toolbars you have created.
Best,
Stefan