• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Save Page as PDF: Large page sizes and UserUnit?

    General
    1
    1
    595
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • strivingJuno
      strivingJuno last edited by

      I love Opera's feature of saving a web page as a custom format / single page PDF. This is just great for saving content in a readable form, as web pages are not usually designed to fit into pages. I work a lot with Jupyter notebooks. Again, page breaks generated by other HTML to PDF converters interfere much with readability.

      However, there is one significant problem. Some PDF readers (notably Acrobat) have a size limitation for PDFs with custom page format. When I open the generated PDF file in Adobe Acrobat, the following error is reported:

      The dimensions of this page are out-of-range. Page content might be truncated.

      In my case, it truncates a considerable portion of the file (more than 50%)!

      Question: How to recover from this?


      Here's how far I've come. According to the PDF reference, the page size limit is:

      The minimum page size should be 3 by 3 units in default user space; the maximum should be 14,400 by 14,400 units. In versions of PDF earlier than 1.6, the size of the default user space unit was fixed at 1 ⁄ 72 inch, yielding a minimum of approximately 0.04 by 0.04 inch and a maximum of 200 by 200 inches. Beginning with PDF 1.6, the size of the unit may be set on a page-by-page basis; the default remains at 1/ 72 inch.

      Apparently, if a PDF exceeds 200 by 200 inches, it should set the \UserUnit attibute on a page-by-page basis. The attribute was added in PDF 1.6. Again from the reference:

      (Optional; PDF 1.6) A positive number that shall give the size of default user space units, in multiples of 1 ⁄ 72 inch. The range of supported values shall be implementation-dependent. Default value: 1.0 (user space unit is 1 ⁄ 72 inch).

      I see that that Opera creates PDFs of version 1.4. A fix would require to first upgrade to PDF 1.6 and then to set the \UserUnit. How can this be done?

      It would be fantastic if the problem was solved within Opera, as it is not uncommon that a web page will be converted into large PDFs.


      This problem has already been discussed elsewhere. For example:

      • https://forums.opera.com/topic/27752/
      • https://forums.opera.com/topic/61295/
      • https://itext-questions.narkive.com/v4VvFBZO/
      • https://kb.itextpdf.com/it5kb/how-to-get-the-userunit-from-a-pdf-file
      • https://trac.osgeo.org/gdal/ticket/5412
      • https://stackoverflow.com/questions/59925907/
      Reply Quote 0
        1 Reply Last reply
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-2025