Digital signed PDF with PHP


I'm trying to digitaly sign PDF document with PHP. I have bought certificate (not using self-signed). What I've got is CER and PEM file. I've tried to generate signed PDF using TCPDF library but with no success. The perfect solution would be to just add signature to existing document (pdf). Any advice?


You may want to check out this thread <a href="https://stackoverflow.com/questions/10903682/digitally-signing-a-pdf-using-php-zend-and-openssl" rel="nofollow">Digitally signing a PDF, using PHP, Zend, and openssl</a>

The author posted his solution under the first answer to the question.

Alternatively there is this <a href="http://www.kryptokoder.com/signwithext.html" rel="nofollow">http://www.kryptokoder.com/signwithext.html</a>


<a href="https://stackoverflow.com/questions/51209229/is-this-pdf-digital-signed-correctly-php-tcpdf" rel="nofollow">Is this pdf digital signed correctly? PHP/TCPDF</a>

This question will fix your problem if you want to create a pdf and just sign it. My problem also comes when I try to sign an existing pdf. I don't know how to use/import an existing pdf with the TCPDF library.


  • php pdf generator supporting vector images
  • php tcpdf image string filter
  • PDF generation from html pages [closed]
  • Arabic in zend pdf
  • Displaying iOS iAds only to supported countries
  • Why does Redshift need to do a full table scan to find the max value of the DIST/SORT key?
  • Is it possible to run an application built on sql server 2008 to run with 2005
  • Run EF6 Query in separate Thread on WinForm Button Click Event
  • AVCaptureSession VS UIImagePickerController camera preview
  • Python adding lots of things to PATH. How do I stop?
  • Accessing the variables from a PHP Anonymous Function
  • How to display the images in listview
  • apply a javascript function to draggable copy
  • Get the number 18437736874454810627
  • Is there a way to dynamically embed PDF Files in a JSP pulled from the file system?
  • Creating PDF from TIFF image using iText
  • Possible to “watch” both HAML and SASS at the same time?
  • Android changing fragment order inside FragmentPagerAdapter
  • SetWindowsHookEx does not react on media keys
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • Create DicomImage from scratch using Dcmtk
  • Groovy: Unexpected token “:”
  • Combining SpatialPolygonsDataFrame of two neighbour countries
  • Get data from AJAX - How to
  • Bug in WPF DataGrid
  • Excel - Autoshape get it's name from cell (value)
  • How to add a column to a Pandas dataframe made of arrays of the n-preceding values of another column
  • Check if a string to interpolate provides expected placeholders
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Why winpcap requires both .lib and .dll to run?
  • RestKit - RKRequestDelegate does not exist
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Traverse Array and Display in markup
  • Angular 2 constructor injection vs direct access
  • Why joiner is not used after Sequence generator or Update statergy
  • Java static initializers and reflection
  • Android Google Maps API OnLocationChanged only called once
  • reshape alternating columns in less time and using less memory
  • UserPrincipal.Current returns apppool on IIS
  • Android Heatmap on canvas or ImageView