Removing signatures from a signed PDF. #1493
-
Hello, I absolutely love all the functionalities that Fitz provides! It covers everything I need except one little thing that I have been having trouble with. I use Fitz to annotate a signed PDF and, as expected, the signatures become invalid the moment you modify the PDF. I was wondering if there was a way for me to REMOVE the signatures from the PDF. When a document is signed, whether it's a valid signature or not, the end user cannot manually add pictures to the PDF. They also see the invalid signature warning upon opening the file. The only way I could do this was to go from PDF to Pixmap to PDF. That way the signatures are lost, but unfortunately so is the text layer. Is there a clean and easy way to do this? I can't seem to find any other way looking through the docs. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hm, PyMuPDF currently does not support adding signature widgets or signing the PDF. So you should be able to iterate over the pages, look for signed signatures and reset them / or delete the signature field altogether. If you only want to add new content that should be possible too, as long as you save incrementally afterwards - which does not invalidate the signature. |
Beta Was this translation helpful? Give feedback.
Hm, PyMuPDF currently does not support adding signature widgets or signing the PDF.
But otherwise handling other widgets / fields is support. As well as removing fields or resetting their content.
So you should be able to iterate over the pages, look for signed signatures and reset them / or delete the signature field altogether.
If you only want to add new content that should be possible too, as long as you save incrementally afterwards - which does not invalidate the signature.