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

Cannot render a pdf file which is generate from MacOS preview #17416

Closed
beyondkmp opened this issue Dec 12, 2023 · 4 comments
Closed

Cannot render a pdf file which is generate from MacOS preview #17416

beyondkmp opened this issue Dec 12, 2023 · 4 comments

Comments

@beyondkmp
Copy link

Attach (recommended) or Link to PDF file here:
specia PDF.pdf

Configuration:

  • Web browser and its version:
    latest version
  • Operating system and its version:
    Win11 and macOS 14
  • PDF.js version:
    latest
  • Is a browser extension:
    No

Steps to reproduce the problem:
open the pdf

What is the expected behavior? (add screenshot)
render is ok

What went wrong? (add screenshot)
cannot render

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
image

@beyondkmp beyondkmp changed the title Cannot render with a pdf which is generate from MacOS preview Cannot render a pdf file which is generate from MacOS preview Dec 12, 2023
@Snuffleupagus
Copy link
Collaborator

Duplicate of #16782


  • Web browser and its version:
    latest version

  • Operating system and its version:
    Win11 and macOS 14

  • PDF.js version:
    latest

  • Is a browser extension:
    No

For future reference: Please remember to fill out this part of the ISSUE_TEMPLATE properly, since "latest" isn't really helpful.

@beyondkmp
Copy link
Author

@Snuffleupagus #16782 has already been closed, but testing this PDF with the patched version from that MR still presents issues, so these two might not be the same problem. I hope to reopen this issue.

@Snuffleupagus
Copy link
Collaborator

The document renders fine when opened with https://mozilla.github.io/pdf.js/web/viewer.html, so you likely need to update to the latest version: https://mozilla.github.io/pdf.js/getting_started/#download

@beyondkmp
Copy link
Author

Cool, thanks very much.

jollaitbot pushed a commit to sailfishos-mirror/poppler that referenced this issue Nov 11, 2024
Handle transparent JPX images, they may contain RGBA data
when no ColorSpace pdf dict is defined or when SMaskInData
is non-zero.

PDF files posted in below issues are fixed by this commit:
https://gitlab.freedesktop.org/poppler/poppler/-/issues/1486
mozilla/pdf.js#16782
mozilla/pdf.js#11306
mozilla/pdf.js#17416

Inspired by related fix in pdf.js:
mozilla/pdf.js#18204

While working on this commit we also succesfully addressed
regressions that emerged for the following files:
mozilla/pdf.js#18896
https://bugs.freedesktop.org/attachment.cgi?id=49294

Issue #1486
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