question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PDF with huge embedded image is displayed as a blank page

See original GitHub issue

PDF: DC000933-uncompressed.pdf

If I open the above PDF in Chrome or Firefox, it is shown as blank at best. Firefox sometimes crashes if I (re)load a couple of times (even at a fresh start-up). I haven’t built Firefox with symbols, but GDB shows that the stack trace ends in mozalloc_abort, which suggets that this segfault is caused by a memory allocation error.

This PDF is quite unusual, it has a width and height with excessive values:

<< /Contents 10 0 R /MediaBox [ 0 0 4444 2592 ] /Parent 6 0 R /Resources << /ExtGState << /G0 11 0 R /G1 12 0 R /G2 13 0 R >> /ProcSet [ /ImageB /ImageC /ImageI ] /XObject << /I0 14 0 R >> >> /Type /Page >>

...

<< /BitsPerComponent 1 /ColorSpace /DeviceGray /DecodeParms << /Columns 24688 /K -1 /Rows 14400 >> /Filter /CCITTFaxDecode /Height 14400 /Name /I0 /Subtype /Image /Type /XObject /Width 24688 /Length 972551 >>

It was allegedly created by MetaPrint.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:4
  • Comments:27 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
MaRieckcommented, Feb 25, 2022

I appreciate that some movement comes into this 😃 hopefully you are able to find it @marco-c and @brendandahl .BTW: I think this “performance” label is wrong. This issue has nothing to do with performance but rather of functionality/bug in edge-cases (embedded image size too large).

4reactions
Benguenettecommented, Jan 19, 2022

Hi, I come and read here every once in a while hoping that a solution shows up. It’s been a few years now and working in engineering document management like some of the users here, It gives us a headache.

Is there an explanation why it’s still open or maybe there’s a limitation in the code making a solution impossible? It would be really appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top Methods to Fix Blank PDF Problem - Wondershare Repairit
Is Adobe Acrobat unable to display or has a blank PDF problem? If so, you will learn about all reasons and methods to...
Read more >
PDF pages go blank - Adobe Support Community - 8352938
1. Open Adobe Reader, go to Edit > Preferences > Internet and either tick, or untick, “Display PDF in browser”. Then close down...
Read more >
Blank pages displayed when viewing large PDF - IBM
Troubleshooting scenario 5: PDF displays blank pages when you view a large document · In Adobe Acrobat, select Edit > Preferences. · Select...
Read more >
PDF Preview showing blank pages | Confluence Server ... - Jira
I think it has to do with the PDF Version. If it's PDF > 1.5 it works, if it's a lower version, the...
Read more >
Why is the size of a PDF with embedded images so large ...
I have a PDF where each page is a full-colored image (it's an artbook). There are 16 pages. One page is completely blank....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found