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

Wrong color on Logitech manual converted to PDF/A 1.7 by paperless/ocrmypdf #17102

Closed
denilsonsa opened this issue Oct 10, 2023 · 1 comment
Closed

Comments

@denilsonsa
Copy link

Attachments

Steps to reproduce the problem

  1. Download logitech-mk235.pdf user manual.

  2. (optional) Add it to paperless-ngx, because the user wants the convenience of having all the manuals together in paperless.

  3. Paperless will convert the original PDF into PDF/A, by issuing this command:

     ocrmypdf --output-type pdfa --skip-text original-Logitech-MK235.pdf archive-Logitech-MK235.pdf
    
  4. Try opening both the original and the archived PDF in Firefox 118.0.1 (on Manjaro Linux).

  5. Observe how the green color from the original PDF ends up being rendered as red in the archived PDF.

  6. Try opening the same PDF in other tools, and observe how most of them keep the green color.

  7. <rant> Wonder why PDF/A, which is aimed at long-term preservation of electronic documents, managed to make the PDF worse. </rant>

What is the expected behavior?

This is the original PDF being rendered inside Firefox:

Screenshot of the original PDF inside Firefox

What went wrong?

This is the archived PDF/A version being rendered inside Firefox:

Screenshot of the archived PDF inside Firefox

Comparing with other tools

Google Chrome

This is the archived PDF/A version being rendered inside Google Chrome 117.0.5938.149, which seems to also suffer from the same bug:

Screenshot of the archived PDF inside Google Chrome

MuPDF

This is the archived PDF/A version opened in MuPDF 1.23.3:

Screenshot of the archived PDF inside MuPDF

Okular

This is the archived PDF/A version opened in Okular 23.08.1:

Screenshot of the archived PDF inside Okular

qpdfview

This is the archived PDF/A version opened in qpdfview 0.5.0:

Screenshot of the archived PDF inside qpdfview

Xpdf

This is the archived PDF/A version opened in Xpdf 4.04:

Screenshot of the archived PDF inside Xpdf

PDF Arranger

This is the archived PDF/A version opened in PDF Arranger 1.10.0

Screenshot of the archived PDF inside PDF Arranger

Inkscape

This is the archived PDF/A version opened in Inkscape 1.3, imported via internal import:

Screenshot of the archived PDF inside Inkscape

This is the archived PDF/A version opened in Inkscape 1.3, imported via Cairo import:

Screenshot of the archived PDF inside Inkscape

@Snuffleupagus
Copy link
Collaborator

Duplicate of #2856

@Snuffleupagus Snuffleupagus marked this as a duplicate of #2856 Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants