Digital signature to PDF ? (1 Viewer)

smig

Registered User.
Local time
Today, 10:00
Joined
Nov 25, 2009
Messages
2,209
Is there a way to add a digital signature to report that is saved as PDF (Using DoCmd.OutputTo) ?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 01:00
Joined
Oct 29, 2018
Messages
21,358
Probably, but you'll more than likely need to use Acrobat API, instead of a simple OutputTo command.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 03:00
Joined
Feb 28, 2001
Messages
27,001
Almost CERTAINLY will need a non-trivial version of Acrobat because the free stuff doesn't do that, or so I recall.
 

sxschech

Registered User.
Local time
Today, 01:00
Joined
Mar 2, 2010
Messages
791
If you don't have full version of acrobat, you can use pdftk or pdftkserver. They are free programs. I use pdftkserver as that is a command line and can be run from vba. Haven't tried signatures with it, but have used it to extract, merge and create bookmarks on pdf files.

https://www.pdflabs.com/

I did a search on signatures since I haven't done it and found this blog mentioning how to setup the signature. It is a linux site, but the pdftk command line portion is same in windows.

http://zyliu2005.blogspot.com/2009/08/linux-how-to-insert-img-to-pdf-files.html
Thanks a lot for this. For people wanting to apply a signature to a pdf, the way that worked for me was to create a pdf file (with gimp) with the signature in the correct position, export as pdf, then:
pdftk orig.pdf stamp signature.pdf output orig_signed.pdf

This is an example of how it is run from vba
Code:
retval = Shell("pdftk " & stMergeFiles, vbMaximizedFocus)
stmergfiles is the variable containing the command line to be performed
 

Users who are viewing this thread

Top Bottom