Skip to main content
Inspiring
August 20, 2021
Answered

Using CF to create a electronically signed pdf application

  • August 20, 2021
  • 1 reply
  • 242 views

I need to build  an electronically signed PDF application to replace a Docusign type product that we currently use. I know starting with CF10 that with CF10+  that I could create an electronically signed PDF. Have there been any updates to CF that have come after CF10 that  would make creating ann electronically signed PDF application easier to build and maintain? Can anyone point me to where someone has done work on something like this?

    This topic has been closed for replies.
    Correct answer Larry C Lyons

    Digitally signing a pdf was added to ColdFusion 11. Seriously given the security and other issues with old versions, you seriously should look to upgrade your copy of CF. If your company cannot afford Adobe CF there are open source alternatives.

     

    That said, here is a brief discussion of digital signing a pdf with coldfusion:

    https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-p-q/cfpdf.html#cfpdf-Digitallysigningthedocuments

     

    Creating a pdf signature is relatively easy. In essence you need a digital certificate (I've used both commercial and self signed ones - they both work the same), with information regarding the path to the certificate, 

     

    <cfpdf action="sign" 
      source="#pdfPath#" <!--- path to pdf  C:\pdfSourcePath --->
      destination="#pdfPath#" 
      keystore="#keystore#" <!---path to the certificate --->
      keystorepassword="#keystorepassword#" <!--- cert's password --->
      password="pdfPassword" <!--- password to the pdf if used --->
      pages="123" <!--- page for the signature I use the last page --->
      height="25" <!--- signature height with an positioning. --->
      width="300"
      position="68,80"
      overwrite="true" 
      author="true" />

     

    1 reply

    Larry C LyonsCorrect answer
    Inspiring
    September 14, 2021

    Digitally signing a pdf was added to ColdFusion 11. Seriously given the security and other issues with old versions, you seriously should look to upgrade your copy of CF. If your company cannot afford Adobe CF there are open source alternatives.

     

    That said, here is a brief discussion of digital signing a pdf with coldfusion:

    https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-p-q/cfpdf.html#cfpdf-Digitallysigningthedocuments

     

    Creating a pdf signature is relatively easy. In essence you need a digital certificate (I've used both commercial and self signed ones - they both work the same), with information regarding the path to the certificate, 

     

    <cfpdf action="sign" 
      source="#pdfPath#" <!--- path to pdf  C:\pdfSourcePath --->
      destination="#pdfPath#" 
      keystore="#keystore#" <!---path to the certificate --->
      keystorepassword="#keystorepassword#" <!--- cert's password --->
      password="pdfPassword" <!--- password to the pdf if used --->
      pages="123" <!--- page for the signature I use the last page --->
      height="25" <!--- signature height with an positioning. --->
      width="300"
      position="68,80"
      overwrite="true" 
      author="true" />