Live data from Hacker News

Making a PDF that's larger than Germany

alexwlchan.net

51–60 of 156 posts

Re: Making a PDF that's larger than Germany

#51

“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 sur…

You have one 7 too many. 352777777777.78cm are 3,527,777.7777778km.

Re: Making a PDF that's larger than Germany

#52
post #11

Fun experiment alexwlchan! Two small mistakes in your post: you write "15,000,000,000.00 in" and "that the size of a page is 15 billion inches", but it should be 15 million. You said you had difficulty formatting text. Here is a "hello world" pdf that just has these two words on a page: copy and paste this text (stripping leading spaces on each line) and save it in a .pdf file. Basically in order to write text you ha…

> "15,000,000,000.00 in" and "that the size of a page is 15 billion inches", but it should be 15 million. Can you help me count zeroes? Why is it million and not billion?

He put too many zeroes. It should be "15,000,000.00 in" or 15 million.

Re: Making a PDF that's larger than Germany

#53

It seems germane at this point to paraphrase Steven Wright. “I have a map of the United States. It’s actual size. “

I have the map of US in my cell-phone.

I'm somewhat confused by its directions however when I look at the map and want to go somewhere. Is the top-part of the map where I'm moving? Or is the top-part North?

Seems it is not North and that is confusing because maps I've seen before have North at the top always.

If I turn 90 degrees, the map turns around. But I thought it was I who turned around.

And if I stop, the map cannot know where I'm going because I'm not going anywhere. So it is almost like I have to start moving before the map can tell me where to turn.

Or if I hold the smart-phone in front of my eyes the top of the map is towards the sky. Am I supposed to look at the map from above?

What are some good tactics on how to use Google-map on your cell-phone?

Re: Making a PDF that's larger than Germany

#54

It seems germane at this point to paraphrase Steven Wright. “I have a map of the United States. It’s actual size. “

I have the map of US in my cell-phone. I'm somewhat confused by its directions however when I look at the map and want to go somewhere. Is the top-part of the map where I'm moving? Or is the top-part North? Seems it is not North and that is confusing because maps I've seen before have North at the top always. If I turn 90 degrees, the map turns around. But I thought it was I who turned around. And if I stop, the map…

I really hate that too. You are in a intersection and the voice says "Drive north for x miles/km". What is wrong with "turn right and drive for x miles/km"? I normally have zero clue in what direction north is especially when I am in a location i have never been before. I drive a bike and have the phone in my pocket and can therefore not see any arrow that the app might display. I only have the audio to navigate from.

Re: Making a PDF that's larger than Germany

#56
post #11

Fun experiment alexwlchan! Two small mistakes in your post: you write "15,000,000,000.00 in" and "that the size of a page is 15 billion inches", but it should be 15 million. You said you had difficulty formatting text. Here is a "hello world" pdf that just has these two words on a page: copy and paste this text (stripping leading spaces on each line) and save it in a .pdf file. Basically in order to write text you ha…

Argh! I knew I was going to make a numerical mistake somewhere, thanks for spotting it. Correction will be up shortly. Thanks for spotting it! :D

And thanks for the text example! This looks like what I was trying, but clearly I had a mistake somewhere.

Re: Making a PDF that's larger than Germany

#57
post #45

I'll analyze PNG for comparison. The largest width and height is 2147483647 (2^31 - 1). Using the pHYs chunk (physical pixel dimensions), the lowest density we can specify is 1 pixel per metre. So, 2 billion metres (2 gigametres) is somewhat bigger than the diameter of the sun at 1.39 Gm. https://en.wikipedia.org/wiki/Orders_of_magnitude_(length)#g... Using the sCAL chunk (physical scale) would allow extremely large…

> Using the sCAL chunk (physical scale) would allow extremely large dimensions because it uses ASCII floating-point.

AFAIK sCAL is more about the image's subject, not the image itself. A 1:10,000,000 scale world map would be < 10 m wide according to pHYs, but it will be ~40,000 km wide according to sCAL.

Re: Making a PDF that's larger than Germany

#58
post #32

I take offense to that diagram; Germany should refuse to be covered by a PDF that's not in proper DIN format. In theory, DIN paper sizes go all the way from subatomic to the size of the universe. It seems like A(-39) is barely too small to cover Germany's land mass, but A(-40) should be more than sufficient. That's 882 x 1247 km if I didn't miscalculate.

Oh here we go again.

Re: Making a PDF that's larger than Germany

#59
post #32

I take offense to that diagram; Germany should refuse to be covered by a PDF that's not in proper DIN format. In theory, DIN paper sizes go all the way from subatomic to the size of the universe. It seems like A(-39) is barely too small to cover Germany's land mass, but A(-40) should be more than sufficient. That's 882 x 1247 km if I didn't miscalculate.

[deleted]
Post reply on HN