Export and Import Comments without user-interaction

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Export and Import Comments without user-interaction

Post by reinierkops »

Is it possible to import and export comments without user interaction.
I saw 36351 and 36503 commands can be executed, but can I give them parameters such as filelocations or something?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Export and Import Comments without user-interaction

Post by Corwin - Tracker Sup »

You can do this by using next JS functions:

Code: Select all

exportAsXFDF(true, true, null, "/c/annots.xfdf", true);
importAnXFDF("/c/annots.xfdf");
In future we will add such functionality to AX directly.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Export and Import Comments without user-interaction

Post by reinierkops »

when I execute this command:
mReferencedViewer.RunJavaScript("this.exportAsXFDF(true,true,null,'/c/annots.xfdf', true");
i receive an error.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Export and Import Comments without user-interaction

Post by reinierkops »

I works, thanks
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Export and Import Comments without user-interaction

Post by John - Tracker Supp »

Thanks - pleased all is well.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com