Hi :) Have you ever needed to sign a PDF document from a Go application ?
Well, I had to do that for one of my projects. I needed to digitally sign PDF documents using a certificate, so I started looking for a suitable Go package.
After exploring serveral options, I found
digitorus / pdfsign
Add/verify Advanced Electronic Signature (AES) and Qualified Electronic Signature (QES) in PDF (using pure Go)
Signing PDF files with Go
A PDF signing and verification library written in Go . This library provides both command-line tools and Go APIs for digitally signing and verifying PDF documents.
See also our PDFSigner , a more advanced digital signature server that is using this project.
Quick Start
# Sign a PDF ./pdfsign sign -name " John Doe " input.pdf output.pdf certificate.crt private_key.key
# Verify a PDF signature ./pdfsign verify document.pdf
Enter fullscreen mode
Exit fullscreen mode
Package Architecture
The library is organized into specialized subpackages, though most users will primarily…