I have a very big screenshot (48.69 x 1220.93 cm) which I’m converting to PDF using PDFBox 2.0.4
.
It works well when I open the generated PDF using the Mac Preview app, but not with Adobe Reader version 2015. It shows only a long blank page and says the dimensions are 19.17 x 200 inches. I’m aware that early versions of the PDF spec had a limit of 200 inches height. So I've tried setting the pdf version to 1.7 but it didn’t work:
org.apache.pdfbox.pdmodel.PDDocument#setVersion
org.apache.pdfbox.cos.COSDocument#setVersion
Both Adobe and Preview say the version of the pdf is 1.7. I can normally open smaller pdfs using adobe.
As @Tilman already said in his comment,
Unfortunately this is beyond the size a specification conforming pdf reader has to support:
(Table C.1 – Architectural limits - ISO 32000-1)
To support a document page as large as desired here, one should use a larger default user space unit, e.g. 3/72".