Any way to call the create digital signature dialog  SOLVED

PDF-XChange Editor SDK for Developers

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

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.
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Any way to call the create digital signature dialog

Post by prime clinical systems »

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 );
You do not have the required permissions to view the files attached to this post.
Last edited by prime clinical systems on Sat Apr 29, 2017 6:57 am, edited 1 time in total.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Any way to call the create digital signature dialog

Post by Sasha - Tracker Dev Team »

Hello Clifford,

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

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems »

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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Any way to call the create digital signature dialog

Post by Sasha - Tracker Dev Team »

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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems »

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
You do not have the required permissions to view the files attached to this post.
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems »

I found this, DlgNewCertificate, how can I launch that? Is that the correct one?
thanks
ce
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Any way to call the create digital signature dialog

Post by Sasha - Tracker Dev Team »

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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems »

Please consider this as a formal request to add button to launch this dialog from the user preferences screen, thanks
Capture1.JPG
You do not have the required permissions to view the files attached to this post.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Any way to call the create digital signature dialog

Post by Sasha - Tracker Dev Team »

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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Any way to call the create digital signature dialog

Post by prime clinical systems »

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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

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

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ