Overriding the machinename when saving a note annotation

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

JGForwick
User
Posts: 16
Joined: Fri Jan 21, 2011 7:17 pm

Overriding the machinename when saving a note annotation

Post by JGForwick »

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!
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7370
Joined: Wed Mar 25, 2009 10:37 pm

Re: Overriding the machinename when saving a note annotation

Post by Paul - PDF-XChange »

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?
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
JGForwick
User
Posts: 16
Joined: Fri Jan 21, 2011 7:17 pm

Re: Overriding the machinename when saving a note annotation

Post by JGForwick »

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?
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?)
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Overriding the machinename when saving a note annotation

Post by Vasyl - PDF-XChange »

Hi, JGForwick.

You may use undocumented property before annotation creation:

Code: Select all

ctrl.SetProperty("Identity.Name", "<CustomName>", 0);
HTH.
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.
JGForwick
User
Posts: 16
Joined: Fri Jan 21, 2011 7:17 pm

Re: Overriding the machinename when saving a note annotation

Post by JGForwick »

That worked, thnx very much!
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Overriding the machinename when saving a note annotation

Post by John - Tracker Supp »

;-)
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