Hacker News new | ask | show | jobs
by tremarley 876 days ago
“But unlike Acrobat, the Preview app doesn’t have an upper limit on what we can put in MediaBox. It’s perfectly happy for me to write a width which is a 1 followed by twelve 0s:

Screenshot of Preview’s Document inspector, showing the page size of 352777777777.78 x 10.59 cm. If you’re curious, that width is approximately the distance between the Earth and the Moon. I’d have to get my ruler to check, but I’m pretty sure that’s larger than Germany.”

The size of every planet in our solar system, put next to each other, can fit in this doc with room to spare

3 comments

By my counting, that document is ~ 373 km^2, which is much smaller than germany. It turns out the ruler was needed after all
You have one 7 too many. 352777777777.78cm are 3,527,777.7777778km.
Now I wonder how large of a file size would such a PDF be if it wasn't empty space...
pdf supports vector graphics! or it can be just a lot of "a" characters, it supports compression/repeat, right?