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

Opera build-in save as pdf for lengthy webpage

  • Hmm, actually, the /UserInit has to be in the /Page section near the end of the file.

    replace_all(src, "<</Type /Page\n", "<</Type /Page\n/UserUnit 72\n");
    

    (for example).

    However, all that does is scale the font-size kind of. It doesn't get rid of the error in Adobe or anything like that. I tred a value of 75000, but that didn't do the trick. Tried 2 and 2.83 to see if that'd increase the allowed dimensions, but that again just increased the scale. There's something about /Mediabox dimensions, but I have know clue if those have to be modified too. I don't think so though.

    So, I don't know. If I find any more info I'll post. For now, use a different reader.

  • @burnout426 said in Opera build-in save as pdf for lengthy webpage:

    Changing the version alone in the header of the file doesn't fix the issue. Looking on the net, the issue is with Adobe and something like a 200in limit. Using pdf version 1.6 and adding/modifying some UserUnit entry to 75,000 entry is supposed to fix it. Have to investigate more. If we can find a solution, perhaps Opera could add that automatically. But, ultimately, it's an Adobe issue.

    @burnout426 said in Opera build-in save as pdf for lengthy webpage:

    Hmm, actually, the /UserInit has to be in the /Page section near the end of the file.

    replace_all(src, "<</Type /Page\n", "<</Type /Page\n/UserUnit 72\n");
    

    (for example).

    However, all that does is scale the font-size kind of. It doesn't get rid of the error in Adobe or anything like that. I tred a value of 75000, but that didn't do the trick. Tried 2 and 2.83 to see if that'd increase the allowed dimensions, but that again just increased the scale. There's something about /Mediabox dimensions, but I have know clue if those have to be modified too. I don't think so though.

    So, I don't know. If I find any more info I'll post. For now, use a different reader.

    Thank you very much for the efforts you've made for this issue. Indeed, if Opera can do this modification automatically, it would be most convenient for all users. There are too many technical things after all.

  • @jackyspeed said in Opera build-in save as pdf for lengthy webpage:

    Indeed, if Opera can do this modification automatically, it would be most convenient for all users. There are too many technical things after all.

    Yes, the question is how can we make them know about this issue, and that you are not alone in that?
    I guess they are not checking every topic of this forum, and even if they found it, still they will consider it as not important/waste of time probably.

    Same in my case, I found that Acrobat opens wrong the document, but it's saved as a whole and I can open in correctly in other pdf viewers.

  • Thank you so much. Chrome was opening PDFs and then something happened and it stopped. I'm a teacher. I really needed this for lesson development. I followed your directions. Now all is well. Thanks again 🙂

  • I have exactly the same problem as @jackyspeed, using Opera 54.0. However I had this issue since it was introduced.

    Have tried it on several computers and the problem persist. Environment is:

    Windows 10 (several versions)
    Opera (several versions)
    Adobe Acrobat Reader (several versions)

    Print to PDF always works, with the limitation of not retaining page layout.

    Save to PDF works for short web pages only and fails to save the entire page on long pages (please try pages that at least 24 pages long.

  • What about Opera 55, the latest stable version?

Log in to reply