Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
IT

Making a PDF That's Larger Than Germany (alexwlchan.net) 63

Software developer Alex debunked the myth of a 381 km x 381 km maximum PDF size. While limitations exist in reader apps, the format itself allows for much larger documents, she found. She even created a PDF exceeding Germany's size.
This discussion has been archived. No new comments can be posted.

Making a PDF That's Larger Than Germany

Comments Filter:
  • "Endless PDF" as in endless paper would be really good. There is no need for pages if the document stays electronic. See web pages. If somebody would print an endless PDF, pages and headers/footers could be added automatically...
    • The thing you are looking for is html and svg.

      pdf purpose is to have documents printed identically on different printers. (or later "devices" in general) But if you ever tried to read a pdf ebook on different ebook-reader sizes you've seen that that won't work without reflow anyway. So it makes sense to use a format that is supposed to delegate some layout responsibility to the device - the opposite of pdf's USP.

      • I know the purpose of PDF. But I still think there should be a way to create something like a PDF/A that is both an endless document and one with pages. The headers and footers could be hidden for display on a screen.
        • The world of HTML/CSS can accommodate just that.

          You have all sorts of ability to hint about styling based on the media context (screen size, preference for light or dark mode, and paginated media versus screen).

          The issue is that it is supremely unlikely to have the same content be super picky about how it would be printed out if that same content is cool with being reflowed and arbitrarily scrolled on a screen. If it is cool with reformatting for endless screen usage, then it's almost certainly fine with r

        • You can optimize your pdf to support reflow - but that basically means cutting of the special pdf features and usually is better with epub (zipped html)

        • This is pretty much what EPUB files are. A set of HTML assets packed in a single file

    • Most web pages are short enough to fit inside the borders of Germany.

      You can make a PostScript that has an endless number of pages, if that helps.

  • by cruff ( 171569 ) on Friday February 02, 2024 @12:16PM (#64208420)
    Imagine exploring one like the interactive XKCD worlds.
  • Oblig. (Score:5, Funny)

    by hackertourist ( 2202674 ) on Friday February 02, 2024 @12:19PM (#64208424)

    381 x 381 km should be enough for anyone!

    • Who would ever need more then 381 x 381 km?

      • Re: (Score:3, Funny)

        by Anonymous Coward

        Germany

      • by davidwr ( 791652 )

        Who would ever need more then 381 x 381 km?

        Oblig. response: Advertisers: Someone out there wants to be able to display an ad that covers the Earth-facing surface of the Moon.

  • For anyone who deals with pdfs like datasheets on a daily basis I can’t recommend Okular enough. It’s light years faster and more responsive than any other pdf viewer program. I wonder how it would handle these monster files?

    • Some errors were found in the document, Okular might not be able to show the content correctly

      Rather annoyingly, the message fades away after 4-5 seconds.

  • Allocate enough bits to the size struct and they double with every extra bit. Making a program that can load it without OOMing on the other hand...
    • The saving grace is that no matter how big the document gets, there are still only a fixed number of pixels on the userâ(TM)s monitor. So the clever programmer will try to code his giant-PDF viewer in such a way that its memory usage is proportional to the number of pixels currently being displayed, rather than to the (potentially enormous) nominal size of the source document.

  • by Happy Monkey ( 183927 ) on Friday February 02, 2024 @12:29PM (#64208452) Homepage
    He made one bigger than the universe.
  • by DarkOx ( 621550 )

    I can finally have that 1:1 scale map of Germany I have always wanted!

  • I'm guessing a standard LoC unit is larger than a Germany unit.

    Which leads to the follow up, how many LoC can a pdf hold?

  • This playful exploration highlights the potential for exceeding perceived limitations in digital formats.

    This is exactly the type of thing ChatGPT et al tend to say.

  • your mom (Score:2, Funny)

    by Anonymous Coward

    Now try making one bigger than your mom's ass.

  • I read "sheI and thought "That's unusual... I wonder?..."

    Yep, trans.
    • Good grief the gender obsessives are tireless. Why the fuck do you care? I have no idea if you are right or just whiny, IDGAF. be a nerd and be impressed about the PDF larger than the universe or just did us all a favor and STFU and GTFO.

      • Good grief the gender obsessives are tireless. Why the fuck do you care? I have no idea if you are woke or just whiny, IDGAF. be a nerd and be impressed about the PDF larger than the universe or just did us all a favor and STFU and GTFO and stop discrimininating against men in tech, and in all college admissions, you sexist, manhating cunts.
  • Perhaps this is useful for legal documents?

  • I need to know how large is this PDF in the standard unit of Libraries of Congress (LOC)
  • map of germany to scale that fit's in that same pdf
  • I was trying to use a full-scale map of Germany and was really pissed off that I was limited to 32 x 32km. Now I can finally do it, 1:1 scale!
  • Yeah, I know, this is irrelevant, but people from Texas like to brag about how big it is. Now there's one more accomplishment...bigger than this giant PDF file.

  • 40km high "Hello" was well readable in most page previews, but the readers I tested could not zoom out enough in the main view.

  • That's all Poland's fault. Oh, I forgot - you can't even say that anymore.
  • Hmm. So maybe the dark matter is in invisible pdf objects.
  • I have a map of the world on US Letter. The world is much bigger than that (or so they tell me, I haven't left the basement to check.)
  • the format itself allows for much larger documents, she found

    Yes and no.

    What she found was one reader that in one spot will interpret and display values that exceed the maximum mentioned in the spec for MediaBox. (But it's not like it's actually using those values elsewhere; e.g., File -> Print just shows Page 1 of 1.)

    What she didn't find was any reader that supports a UserUnit larger than the 75,000 maximum allowed by Acrobat 7.0.

    However, it is true that UserUnit has no limit per the spec "The range of supported values shall be implementation-dependent.".

    The "my

Crazee Edeee, his prices are INSANE!!!

Working...