Skip to main content
Participating Frequently
June 7, 2019
Question

IAC application for remote sign

  • June 7, 2019
  • 6 replies
  • 712 views

I have developed an Acrobat IAC application in C# in which i connect to a cloud consortium signature web service. I must now call signatures/signHash (in this method i must pass the hash of a pdf so the web service can sign it) method to sign the pdf remotly. I can do this with Secure Black Box but i want to open the pdf with IAC objects and use AcroExch.PDDoc to send this hash of the Pdf to the web service. I really dont know where to start from, any ideas ?

This topic has been closed for replies.

6 replies

Legend
June 8, 2019

please search for signature in the JavaScript reference.

Legend
June 8, 2019

For sure, JavaScript can sign using signature fields. It does so using a signature handler provided by Acrobat or a plug-in. So you come back to a plug-in, unless PPKLite will do what you want. According to Digital Signatures , "Security handlers are Acrobat plugins. Information about creating plugins in general and security handlers in particular can be found in the Acrobat Software Development Kit (SDK) and its HFTs, header files, and other API documentation. Because Acrobat's Adobe.PPKLite is becoming more feature rich with each release, it is unlikely that you will need a custom security handler. "

So I suggest as your next step you examine what PPKLite can do. So long as you can work with signature fields, maybe it can use system security handlers, so you can install your network signer to the system via a local driver. This is getting outside what I know.

Participating Frequently
June 8, 2019

But can i use PPKLite in an IAC application?

Legend
June 8, 2019

Yes, an Acrobat plug-in. These are written in C++. It would have fairly small connection to Acrobat; save a file, send/process for signature, receive, edit local PDF, possibly reopen in Acrobat. I think you may find that the library you were using was doing a lot of stuff that you will need to reimplement. Plug-ins do have a specific signature API, but it does not seem especially applicable to remote signatures. However, as you study it, you may find that it is a perfect fit to your signature architecture - which as I say you will likely need to understand in painful detail.

Participating Frequently
June 8, 2019

I understand. I prefer to do this in IAC still. Maybe I can use GetJSObject() from the PDDoc object? Is there nothing signature oriented in the IAC API?

Participating Frequently
June 8, 2019

I understand. By plug-in you mean an Acrobat plug-in? I said that i used Secured Black Box library and made this work, but this is a proiect for school and i need to make a IAC or an Acrobat plug-in to remote sign the PDF-s.

Legend
June 8, 2019

No there is no support specifically for remote signatures. A plugin in could, I am sure, implement them; it can send files or hash to a server and handle the results. But you said IAC. There is absolutely nothing in IAC to do this or enable you to do it. An external app could be written to connect to a signature server but Acrobat wouldn’t be involved.

You’re certainly going to need a very detailed knowledge of how signatures work in general and your proposed signatures work, or a complete API to do it for you.

Legend
June 7, 2019

None of that sounds possible. But I may not understand. How do you propose to get the hash of a PDF? What kind of hash?

Participating Frequently
June 8, 2019

Why do you say its not possible? Is there any support in the SDK for remote signatures? Im not quite sure how the digitally signatures works on a pdf in context of remote signatures....i just know that the web service recieves a hash of the PDF, signs it with the private key stored there and then returns the signed hash.