Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF Signature #1344

Closed
johnnynunez opened this issue Jan 10, 2025 · 1 comment
Closed

PDF Signature #1344

johnnynunez opened this issue Jan 10, 2025 · 1 comment
Labels

Comments

@johnnynunez
Copy link

Well, I had this problem #1333 so thank you.
But my question is, if I can sign a PDF, loading and no creating new one. I mean
In the tutorial you have to create for example a PDF and sign it, but is it possible for example, take a ready pdf like for example an reportlab pdf or any PDF and sign it?
https://py-pdf.github.io/fpdf2/Signing.html
image
https://www.reportlab.com/

Example in web:

pdf = FPDF()
pdf.add_page()
pdf.sign_pkcs12("certs.p12", password=b"1234")
pdf.output("signed_doc.pdf")
@Lucas-C
Copy link
Member

Lucas-C commented Jan 10, 2025

Hi @johnnynunez

No, fpdf2 does not support signing existing PDF documents.

You should have a look at PyHanko for this: https://pyhanko.readthedocs.io

@Lucas-C Lucas-C closed this as completed Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants