Hi there.
Currently when you place a note annotation on a PDF, the note displays the machine name as the creator of the annotation (along with the date and time the annotation was added). Is there any way we can override the machine name and use a passed in value there instead? We have the pdf viewer embedded in a custom application which has its own application userid's. Ideally we'd like to have those application userid's displayed in the sticky note credentials instead of the machine name. Is that possible or are we out of luck?
Thanks in advance!
Overriding the machinename when saving a note annotation
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 16
- Joined: Fri Jan 21, 2011 7:17 pm
-
- Site Admin
- Posts: 7370
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Overriding the machinename when saving a note annotation
HI JGForwick,
I know that in the end user version the "Name" field in the Identity section of the Viewer will override the login name. Have you tried setting that field programatically?
I know that in the end user version the "Name" field in the Identity section of the Viewer will override the login name. Have you tried setting that field programatically?
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
- User
- Posts: 16
- Joined: Fri Jan 21, 2011 7:17 pm
Re: Overriding the machinename when saving a note annotation
Hi Paul, sorry for the late response. It does not appear that the Identity is overrideable as far as I can see. The SDK documentation is a little sparse on the Identity object (actually the sdk infers that the identity object is only relevant for Javascript?)Paul - Tracker Supp wrote:HI JGForwick,
I know that in the end user version the "Name" field in the Identity section of the Viewer will override the login name. Have you tried setting that field programatically?
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Overriding the machinename when saving a note annotation
Hi, JGForwick.
You may use undocumented property before annotation creation:
HTH.
You may use undocumented property before annotation creation:
Code: Select all
ctrl.SetProperty("Identity.Name", "<CustomName>", 0);
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 16
- Joined: Fri Jan 21, 2011 7:17 pm
Re: Overriding the machinename when saving a note annotation
That worked, thnx very much!
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Overriding the machinename when saving a note annotation

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
Best regards
Tracker Support
http://www.tracker-software.com