[GH-ISSUE #614] Invalidate digital signatures for uploaded PDF files #481

Open
opened 2026-02-25 21:32:01 +03:00 by kerem · 1 comment
Owner

Originally created by @migueltsantana on GitHub (Apr 21, 2024).
Original GitHub issue: https://github.com/ciur/papermerge/issues/614

Originally assigned to: @ciur on GitHub.

Description
On line 54 from papermerge/core/ocr/document.py, where the function ocrmypdf.ocr() is declared, the invalidate-digital-signature flag is missing.
Right now, digitally signed PDF's (even if they have already the text embedded into them) won't be searchable because they cannot go through the OCR function.
This won't interfere with the non-repudiation property of the signed PDF file itself as Papermerge stores two versions of the PDF: the uploaded one and the OCRed one.

Sources
https://ocrmypdf.readthedocs.io/en/latest/api.html
https://ocrmypdf.readthedocs.io/en/latest/pdfsecurity.html#digital-signatures

Info:

  • Papermerge Version 3.2
  • Docker 26.0.2
  • Docker Compose 2.26.1
  • OS: Raspbian 12 (bookworm)
Originally created by @migueltsantana on GitHub (Apr 21, 2024). Original GitHub issue: https://github.com/ciur/papermerge/issues/614 Originally assigned to: @ciur on GitHub. **Description** On line 54 from papermerge/core/ocr/document.py, where the function ocrmypdf.ocr() is declared, the `invalidate-digital-signature` flag is missing. Right now, digitally signed PDF's (even if they have already the text embedded into them) won't be searchable because they cannot go through the OCR function. This won't interfere with the non-repudiation property of the signed PDF file itself as Papermerge stores two versions of the PDF: the uploaded one and the OCRed one. **Sources** https://ocrmypdf.readthedocs.io/en/latest/api.html https://ocrmypdf.readthedocs.io/en/latest/pdfsecurity.html#digital-signatures **Info:** - Papermerge Version 3.2 - Docker 26.0.2 - Docker Compose 2.26.1 - OS: Raspbian 12 (bookworm)
Author
Owner

@bluekitedreamer commented on GitHub (Apr 23, 2024):

https://github.com/ciur/papermerge/issues/603

Related

<!-- gh-comment-id:2071483536 --> @bluekitedreamer commented on GitHub (Apr 23, 2024): https://github.com/ciur/papermerge/issues/603 Related
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#481
No description provided.