Copy link to clipboard
I am having problems with some PDFs created using Perl package PDF::TableX with PDF::Builder, on Windows 10. When created with no compression, Adobe Acrobat Reader (64 bit) displays it fine, but with Flate compressed streams, the PDF loads but is overlaid with a dialog "An error exists on this page. Acrobat may not display the page correctly. Please contact..." Press "OK" and everything seems to be fine, and Acrobat does not request permission to save the (changed?) file upon exit (as it normally does if it fixed something upon load). I have been trying for literally days to find what's wrong with the PDF (compressed version) and have found nothing. Everything seems to be clean. I even ran PDFtk against it to created an uncompressed version, which displays without error, and the streams appear to be identical in size and content with the originally uncompressed version.
01compressed.pdf = with compression, shows error upon load
01uncomp.pdf = created without compression, no errors reported
01decomp.pdf = uncompressed by PDFtk from 01compressed.pdf, no errors reported
Maybe some of you have better debuggers and can find what the error is. I have tried PDFXplorer and pdf-online.com, and neither report any problems (just 122 informational messages about a path being defined but not used). The compressed PDF displays cleanly in Firefox, Chrome, and Edge, as well as with XpdfReader, and uncompresses in PDFtk without reported problems. That suggests that either it's a very subtle problem in the PDF, or there's a bug in Acrobat. Adobe products, particularly Acrobat (the free downloaded version, BTW) are the Gold Standard for PDF Readers, so I'd really like to see it display properly in Acrobat. Thanks!
P.S. This is a (Perl) test program from PDF::TableX, that creates a chessboard with each square labeled with the color. I didn't write it, so please don't complain about things like the Times-Roman core font being defined 64 times (once for each piece of text) instead of just once. I am the author of PDF::Builder, the library it uses to actually generate a PDF. There is another test program (03) that also produces this particular error, but I want to see if any fix for this one fixes that one, too. Then I've got several PDFs generated from TIFF files that won't display at all, but I'll deal with those in a later ticket.
Copy link to clipboard
Has anyone been able to reproduce this problem? It's only the compressed PDF, and it's only with Adobe Acrobat Reader (free download version). I'm hoping that someone has access to a good PDF debugger that will indicate what Reader is choking on.