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

Invalidate digital signatures for uploaded PDF files #614

Open
migueltsantana opened this issue Apr 21, 2024 · 1 comment
Open

Invalidate digital signatures for uploaded PDF files #614

migueltsantana opened this issue Apr 21, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@migueltsantana
Copy link

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)
@migueltsantana migueltsantana added the bug Something isn't working label Apr 21, 2024
@bluekitedreamer
Copy link

#603

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants