开发者

How to digitally sign PDF documents in a web application?

开发者 https://www.devze.com 2022-12-18 01:54 出处:网络
I\'m building a web application that most allow the user to digitally sign PDF documents with certificates installed in the client machine.

I'm building a web application that most allow the user to digitally sign PDF documents with certificates installed in the client machine.

The document, onc开发者_如何学编程e signed, should be posted back to the server, where it will store the signed version.

The server is running Classic ASP/ASP.NET

Where should I go?


Try Adobe LiveCycle Designer
This comes with the Adobe Master Suit and has all the capabilities for ES. It works with PKI infrastructure and will Publish "certified" PDF documents that prove authenticity for recipients. It's better to start with something that already exists.


Our SecureBlackbox library has a distributed cryptography add-on which does what you need. Client-side modules that do signing can be extended by the user (we provide complete source code). You will find detailed description of the add-on on our site or in this SO answer.


I actually built a system just like this into our web application. Here are some links I found tremendously helpful in doing so:

http://www.codeproject.com/KB/vb/Digital_Signatures.aspx

http://www.devx.com/security/Article/17249/0/page/2

http://www.example-code.com/vbdotnet/digSig1.asp

http://www.abanet.org/scitech/ec/isc/dsg-tutorial.html

http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=sdkHelp&file=signaturesSigning.90.4.html

http://www.c-sharpcorner.com/UploadFile/Gowri%20S%20Paramasivam/Cryptography211242005003308AM/Cryptography2.aspx


I would use iTextSharp to sign the PDF. iTextSharp is free and open source. Take a look at the sample code signing PDF http://itextpdf.sourceforge.net/howtosign.html I have used iTextSharp before reliably.


Look for java libraries to sign PDF documents. You can deploy them in an applet which should fit in your web application. If users need to preview the PDF documents before signing them then look at the java bean jPDFNotes from Qoppa Software (Disclosure: I'm affiliated with this company). If the documents can be signed without preview, look at their other libraries jPDFFields or jPDFProcess. There is also iText an open source library but iText doesn't support viewing documents so it will only work in the second scenario.


Go to http://www.certisign.com.br/ they have the answer for you. CertSign has API's and training to enable digital certification.

This place did exactly what you need when I renewed my digital CPF http://loja.certificadodigital.com.br/Serasa/Serasa-Certificados-Digitais/D1


I use to write the FDF to PDF programming from Adobe FDF toolkit. I could take the full version of Acrobat Pro and use a W-2 , I-9 Federal Forms place fields and a signature box and with Topaz Systems signature pads, based on pressure points, angles etc... the activex algorithm would save the signature and everything into the sql server database, and i could go the other way and populate a PDF from SQL Server.


We do this using Silverlight with BouncyCastle in the client and iTextSharp in the server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号