Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
cagribal #1
Programmatically changing status of an annotation
Hi,
I want to be able to change the status of an annotation from my plug-
in. Normally when you do it from acrobat itself, for instance when you
select review->accepted, you see that another annotation is added
below this annotation in the annotations list. And it is rather a
special annotation and is listed as Status in bold also a green check
appears on the pop-up of the annotation. The problem is how to add
such a status annotation programmatically. Any help would be
appreciated.
Thanks,
Cagri
cagribal Guest
-
Programmatically adding reply to a text annotation (to sticky note)
Hello, I would like to add replies to PDTextAnnotations. I tried as follows: //Get annotation dictionary of this comment CosObj dictThis =... -
programmatically changing the constraint layout
Hi, I have a control that I placed on an MXML form with contraints, so that it automatically resizes when the form resizes. I now need to change... -
Programmatically changing Adobe Pdf Print Properties
Greetings, I have search all over to find an answer to this problem. I am driving MS Powerpoint with VB6 and also with Perl using Win32::OLE ... -
CHANGING COPYRIGHT STATUS IN FILE BROWSER?
CAN ANYBODY TELL ME HOW TO BATCH CHANGE THE COPYRIGHT *STATUS* OF IMAGES IN THE METDATA USING FILE BROWSER. I'D RATHER NOT HAVE TO RUN AN ACTION AND... -
#25044 [Opn->Csd]: header("Location:") changing HTTP status
ID: 25044 Updated by: helly@php.net Reported By: seairth at cox dot net -Status: Open +Status: ... -
cagribal #2
Re: Programmatically changing status of an annotation
Update: Here is the implementation (with minor details omitted) I
tried:
PDAnnot statusannot;
ASFixedRect thisRect;
PDAnnotGetRect(annot, &thisRect); //Annot is the comment whose
status is changed
//Create a PDAnnot object
statusannot = PDPageCreateAnnot (page, ASAtomFromString("Text"),
&thisRect);
//Cast the PDAnnot object to a PDTextAnnot object
statusannot = CastToPDTextAnnot(statusannot);
//Open the annotation, set the text, and add it to a page
PDTextAnnotSetOpen (statusannot , true);
PDTextAnnotSetContents (statusannot , "Accepted set by bcagri",
strlen("Accepted set by bcagri"));
//Get the CosDoc
AVDoc curr_doc = AVAppGetActiveDoc();
PDDoc myPDDoc = AVDocGetPDDoc(curr_doc);
CosDoc cd = PDDocGetCosDoc(myPDDoc);
//Get annotation dictionary
CosObj statusDict = PDAnnotGetCosObj(statusannot);
CosObj strObj = CosNewString(cd, false, "bcagri", 6);
CosDictPut (statusDict , ASAtomFromString ("T"), strObj);
CosDictPutKeyString(statusDict , "State", CosNewString(cd, false,
"Accepted", 8));
CosDictPutKeyString(statusDict , "StateModel", CosNewString(cd,
false, "Review", 6));
//statusannot is added as a child to annot and refers to its status,
described in PDF Reference 1.7, page 620
CosDictPut (statusDict , ASAtomFromString ("IRT"), PDAnnotGetCosObj
(annot));
PDPageAddAnnot(page, -2, statusannot);
This is the implementation of the description on page 620 of the PDF
Reference 1.7. But unfortunately it doesn't work.
Any help is appreciated.
Thanks
On Apr 3, 3:17*pm, cagribal <cagri.balke...@gmail.com> wrote:> Hi,
>
> I want to be able to change the status of an annotation from my plug-
> in. Normally when you do it from acrobat itself, for instance when you
> select review->accepted, you see that another annotation is added
> below this annotation in the annotations list. And it is rather a
> special annotation and is listed as Status in bold also a green check
> appears on the pop-up of the annotation. The problem is how to add
> such a status annotation programmatically. Any help would be
> appreciated.
>
> Thanks,
>
> Cagricagribal Guest



Reply With Quote

