Digitally signing a PDF, using PHP, Zend, and openssl

后端 未结 2 865
不知归路
不知归路 2020-12-11 08:32

I\'m trying to build a simple PDF document signing routine, using PHP, openssl, and the Zend framework (for pdf redering/handling).

I\'ve found this, but it simply w

相关标签:
2条回答
  • Adding my solution as answer, per halfer's advice: Solved this one, because I was passing the content to Zend_Pdf as a string, i should have been using Zend_Pdf::parse($new_pdf);, as it very likely says in the manual. (oops)

    Further; I solved pretty much ALL of my problems with digitally signing PDFs of various versions and form constituents by moving to TCPDF, as several of the articles here suggest. A similar caveat was met with TCPDF though, when using strings, ensure that you are using TCPDF's 'writeHTMLCell' instead of 'writeHTML'. And watch for PHPs 'magic_quotes', errant whitespace, encoding, and goblins.

    0 讨论(0)
  • 2020-12-11 08:59

    TCPDF supports signing of pdf files. Maybe you find something useful in the source code.

    0 讨论(0)
提交回复
热议问题