How to set the default properties to annotations

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

anti_g
User
Posts: 22
Joined: Thu Apr 02, 2009 9:55 am

How to set the default properties to annotations

Post by anti_g »

Hi,

in order to distinguish multiple users I'd like to set some default properties to annotations such as:
- author
- subject
- may be default text
so that these properties are shown on new annotations.

"Set as standard" feature in the context menu of an annotation does not work for some reason. And anyway I want to set them programmatically.

Thanks,
Anton.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to set the default properties to annotations

Post by Corwin - Tracker Sup »

You can change Author property for commenting tools by specifying "Identity.Name" property

Code: Select all

CoPDFXCview1.SetProperty("Identity.Name", "Some Name", 0)
Other properties like subject and text cannot be changed via Viewer ActiveX.

Also - if you want to change some info for an existing annotation in a PDF document you can do this with Java Script. For more information about use of JS with PDF's please look at the Acrobat JavaScript Object Specification, available from Adobe's site.
anti_g
User
Posts: 22
Joined: Thu Apr 02, 2009 9:55 am

Re: How to set the default properties to annotations

Post by anti_g »

well, it works with author, though subject would be cool too :wink:
Thanks for advice about JavaScript, but that is only for editing existing annotations. Wouldn't help in my case.