Any way to call the create digital signature dialog  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: Tracker Support, TrackerSupp-Daniel, Paul - Tracker Supp, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
prime clinical systems
User
Posts: 190
Joined: Sun Aug 05, 2012 5:20 pm

Any way to call the create digital signature dialog

Post by prime clinical systems » Wed Apr 26, 2017 3:18 am

Capture.JPG
Hi, would like to create this dialog or run it silently, any way to do that?
Capture.JPG
I tried JavaScript, but I guess the console does not support this:
var ppklite = security.getHandler(security.PPKLiteHandler);
var oRDN = { cn: "Fred NewUser", c: "US" };
ppklite.newUser( "testtest", "/d/temp/FredNewUser.pfx", oRDN);

This did not work either
var ppklite = security.getHandler(security.PPKLiteHandler);
var oRDN = { cn: "Fred NewUser", c: "US" };
var oParams = {
cPassword : "myPassword",
cDIPath : "/c/users/public/FredNewUser.pfx",
oRDN : oRDN,
bUI : false
};
ppklite.newUser( oParams );
Attachments
Capture1.JPG
Last edited by prime clinical systems on Sat Apr 29, 2017 6:57 am, edited 1 time in total.

User avatar
Sasha - Tracker Dev Team
User
Posts: 4089
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Any way to call the create digital signature dialog

Post by Sasha - Tracker Dev Team » Wed Apr 26, 2017 8:42 am

Hello Clifford,

This dialog is inside of the Sign Document dialog - what do you want to achieve with it?

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

prime clinical systems
User
Posts: 190
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems » Wed Apr 26, 2017 6:30 pm

I want to achieve just as Javas script, create user PFX files automatically for purposes of digital signatures so they don't have to go through the process of setting that up.
Otherwise, the only place this screen pops up is when siging a document, it does not come up in user preferences signing section, but if there is a command to show this dialog on it's own, then I could just have user do that.

CE

User avatar
Sasha - Tracker Dev Team
User
Posts: 4089
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Any way to call the create digital signature dialog

Post by Sasha - Tracker Dev Team » Fri Apr 28, 2017 12:04 pm

Hello Clifford,

I do not quite understand what you want. The dialog that you mentioned is used for the pfx file creation and the javascript code uses an already created pfx file.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

prime clinical systems
User
Posts: 190
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems » Sat Apr 29, 2017 6:55 am

Capture1.JPG
No, the java script creates the certificate, that's why it's a new user, anyway, I was sent an email from Stefan Dzhukelov, he stated you wanted full running project to see the issues of both of the posts, and everything is described there, I just sent it 5 min ago

prime clinical systems
User
Posts: 190
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems » Sun Apr 30, 2017 7:58 am

I found this, DlgNewCertificate, how can I launch that? Is that the correct one?
thanks
ce

User avatar
Sasha - Tracker Dev Team
User
Posts: 4089
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Any way to call the create digital signature dialog

Post by Sasha - Tracker Dev Team » Wed May 03, 2017 7:28 am

Hello Clifford,

Well, having the ID of the dialog, you can get it's template for example, though you cannot launch the dialog itself with it's logic.
I'm not a JS expert, but after testing this code in the Acrobat, it wanted an existing pfx file, meaning that it is using an existing file on disk not creating it.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

prime clinical systems
User
Posts: 190
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems » Wed May 03, 2017 10:38 am

Please consider this as a formal request to add button to launch this dialog from the user preferences screen, thanks
Capture1.JPG

User avatar
Sasha - Tracker Dev Team
User
Posts: 4089
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Any way to call the create digital signature dialog

Post by Sasha - Tracker Dev Team » Wed May 03, 2017 1:25 pm

Hello Clifford,

The direct certificate creation is not a part of the PDF Specification and is not a part of our SDK. Right now, we do not provide a way to create a certificate any other way then the sign document dialog and as far as I know, we there are no plans of providing that in the nearest future. Though your feature request will be taking into consideration.
What you can do, is launch the Sign Document dialog and automatically open the needed dialog (click a button programmatically) - that is possible to do.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

prime clinical systems
User
Posts: 190
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems » Thu May 04, 2017 8:47 am

No worries, found simple command line utility with MS Cert tool, and saves to file, made my own dialog, just that user needs a simple way in program setup to do this, and since I don't show the sign dialog in my program, the main one is too cluttered. For users to use a product easily, need simple tool like this.

ce

User avatar
Sasha - Tracker Dev Team
User
Posts: 4089
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Any way to call the create digital signature dialog  SOLVED

Post by Sasha - Tracker Dev Team » Thu May 04, 2017 8:56 am

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply