Copy/Paste/Cut Annotation via API

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

TatianaS
User
Posts: 103
Joined: Mon Mar 18, 2013 4:26 pm

Copy/Paste/Cut Annotation via API

Post by TatianaS »

hello,
I am trying to use Copy command to copy selected annotation using:
DoVerb('','ExecuteCommand','Copy',vDataOut, 0);
however, I get exception saying "Command is disabled currently",
could you please help me resolve it.

Thanks
-Tatiana
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Copy/Paste/Cut Annotation via API

Post by Stefan - PDF-XChange »

Hello TatianaS,

Is your document security protected?
Also have you considered using JS for annotation manipulations?
http://www.adobe.com/content/dam/Adobe/ ... erence.pdf
To execute JS code in the Viewer take a look at the RunJavaScript() method and samples in the manual/help file.

Regards,
Stefan