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

[Bug]: HC-PDF - Foreground Images not loading, making PDFs unreadable #19049

Open
kgronowski opened this issue Nov 15, 2024 · 2 comments
Open

Comments

@kgronowski
Copy link

kgronowski commented Nov 15, 2024

Attach (recommended) or Link to PDF file

https://sbc.org.pl/Content/874002/PDF/BŚ-RIII6831-1921.pdf

Web browser and its version

Chrome 131.0.6778.70 / Firefox 132.0.2

Operating system and its version

Windows 10/11

PDF.js version

4.0.269 and latest

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open linked PDF file in viewer or directly in Firefox or go to https://sbc.org.pl/formats/pdf/web/viewer.html?file=https%3A%2F%2Fsbc.org.pl%2FContent%2F874002%2FPDF%2FB%25C5%259A-RIII6831-1921.pdf

What is the expected behavior?

All images are properly rendered/loaded, texts are readable. Just like in default PDF viewer in chromium based browsers or Adobe Acrobat.
image

What went wrong?

Foreground images are properly loaded.

image

Link to a viewer

https://sbc.org.pl/formats/pdf/web/viewer.html?file=https%3A%2F%2Fsbc.org.pl%2FContent%2F874002%2FPDF%2FB%25C5%259A-RIII6831-1921.pdf

Additional context

Problem could be related to sizes of underlying images as other, smaller PDFs created with the same method render just fine.
Example: https://sbc.org.pl/formats/pdf/web/viewer.html?file=https%3A%2F%2Fsbc.org.pl%2FContent%2F849032%2FPDF%2FB%25C5%259A-BTLw3193-1901.pdf

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Nov 15, 2024

Note that each page consists of two separate images, one used as "background" respectively "foreground", and it's the "foreground" images that fail to load.
Hence it isn't technically accurate to say that the quality is bad, since that's what the "background" images look like, but the actual bug is that the "foreground" images are somehow broken and thus fail to render.

@kgronowski kgronowski changed the title [Bug]: HC-PDF - Images are loaded in low resolution/quality, making them unreadable [Bug]: HC-PDF - Foreground Images not loading, making PDFs unreadable Nov 18, 2024
@kgronowski
Copy link
Author

Hey, thanks for your reply. I've updated the issue accordingly.
Do you have any idea what we can do to make image loading work like in other viewers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants