cfDocument and Digital Signature Field so another can sign

345 views
Skip to first unread message

David Gardner

unread,
Feb 25, 2016, 12:24:46 PM2/25/16
to tacfug
​​I've created a PDF document with cfDocument.
When requested, the site will send the document to the client.
My client would like to have a spot on the last page to digitally sign it, and then forward it on to someone else.

But I've not been able to find anything on Google to help with this.  I guess I'll have to have someone in the Client's area create the form-fillable PDF with the sig block that he wants, and then use cfPdfForm to populate it. 

But if anyone knows a way to create the form either inside the cfDocument block, or after cfDocument generates the PDF, I'd love to hear it!

Jim Priest

unread,
Feb 25, 2016, 12:29:59 PM2/25/16
to tac...@googlegroups.com
It has been a long time since I worked with PDF forms but I don't think it's possible to do that only in CF.

You need to create the PDF form with Acrobat - then you can easily populate it or have it submit data via CF.

Ray Camden did a good series on cfpdf awhile ago and I probably have some code around here I could dig up as well.  Once you have the form created it's fairly simple to push/pull form data.

Jim



--
Upcoming events: http://www.meetup.com/Triangle-Area-ColdFusion-Users-Group/
Follow us on Twitter: @tacfug
---
You received this message because you are subscribed to the Google Groups "TACFUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tacfug+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bi...@diffuseaudio.com

unread,
Feb 25, 2016, 12:56:04 PM2/25/16
to tac...@googlegroups.com

Have you looked at verisign?    I don't think you'll be able to do this natively. 

David Gardner

unread,
Feb 25, 2016, 4:10:48 PM2/25/16
to tacfug
Yeah, I have already used code to populate a form PDF, so that's available as a fall back.  pretty sure I'm just going to have to do that.

Charlie Arehart

unread,
Feb 25, 2016, 4:45:29 PM2/25/16
to tac...@googlegroups.com

David, you don’t say the version you’re on but note that CF 11 can indeed sign a PDF. But I realize that may not be what you want, so keep reading.

First, for anyone interested, CF11 can put a signature on a page. One would not do it with CFDocument (which just creates a PDF from html content.) Instead one would use CFPDF action=”sign”, which supports things like naming the page, the location on the page to place it, its height and width, etc., as well of course the name, password, etc.

But David says in the subject he wants a field “so another can sign” and then says that his client “would like to have a spot….to digitally sign it”, so he may not therefore want the document to be signed *from within CF*.

Even so, it appears you may be covered there. Note that the docs say you can also use CFPDF to set a PDF to *allow for signing by a user*. See action”protect” and permission=”allowsecure”, though I’ve not used either.

For more, see: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-p-q/cfpdf.html (yep, that’s the CF2016 docs, and sadly only toward the bottom do they indicate that signing is new to 11. It’s not in the history at the top.)

Let us know if that helps and how it works out for you.

/charlie

--

Reply all
Reply to author
Forward
0 new messages