mekentosj / podofo

PoDoFo is a library to work with the PDF file format. The name comes from the first letter of PDF (Portable Document Format). A few tools to work with PDF files are already included in the PoDoFo package. This repo is a fork of the code at http://svn.code.sf.net/p/podofo/code/podofo/trunk
GNU General Public License v2.0
52 stars 29 forks source link

Example on signing PDF #1

Open diorahman opened 10 years ago

diorahman commented 10 years ago

Hi,

I need a complete example on signing a PDF, just like what is exhibited by http://portablesigner.sourceforge.net/ Thanks for your help!

CyberCircuits commented 5 years ago

Hi, There are some example codes: http://sourceforge.net/p/podofo/code/HEAD/tree/podofo/trunk/test/SignTest/ http://sourceforge.net/p/podofo/code/HEAD/tree/podofo/trunk/test/SignatureTest/

avafinger commented 2 years ago

@CyberCircuits The code examples you provided do not sign the PDF. Would you have (or anyone) a complete sample of signing a PDF with pfx (and adding a new sign) using podofo in Linux?

zvezdochiot commented 2 years ago

Hi all.

Maybe use https://github.com/intoolswetrust/jsignpdf ?

avafinger commented 2 years ago

That is Java. Not suitable to run in embedded systems not to mention security concerns. I have python code to sign the PDF tested some time ago that works nice on PC but is a bit slow, i would like one with C++ or even strait C for fast signing.

I am willing to pay a beer (or lots of) or a small fee for the brave one to implement or finish the SignTest to really sign the PDF with a pfx certificate.

Anyone?

zvezdochiot commented 2 years ago

Hi @avafinger .

Maybe https://github.com/opensignature/pdfsign ?

:warning: Remove "CMS_CADES" flags.

avafinger commented 2 years ago

@zvezdochiot , I will try that and see what I get.Thanks