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

  • Does anyone have experienced a problem when saving a very long page to PDF with Opera build-in save-as function? It will pop an error message of "The dimensions of this page are out-of-range" when I open the saved PDF file. And the saved page is not complete. How this can be solved? Anyone can be so kind as to provide a solution for this? Many thanks in advance!

  • Actually I was just about posting a thread, because I have also but a general issue with saving to pdf from long time, saving most of the web-pages, where when they are longer then normal, it saves only part of it, usually from the middle to the end.
    Of course reinstalling and updating many times, nothing helped.
    Would be glad to find a solution...
    Thanks

  • Using 32-bit or 64-bit Opera? The image Opera generates of the page for use in the PDF problem has a height that is too long. Depending on how Opera does that, using 64-bit might give you some more room to work with. Depends though.

    If you choose to print, set the destination to PDF and save as a PDF that way, does it work then?

    If you don't actually need it to be in PDF format, you can save as an mhtml file. Just enable opera://flags/#save-page-as-mhtml to make it show up in the regular save as dialog.

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

    Using 32-bit or 64-bit Opera? The image Opera generates of the page for use in the PDF problem has a height that is too long. Depending on how Opera does that, using 64-bit might give you some more room to work with. Depends though.

    If you choose to print, set the destination to PDF and save as a PDF that way, does it work then?

    If you don't actually need it to be in PDF format, you can save as an mhtml file. Just enable opera://flags/#save-page-as-mhtml to make it show up in the regular save as dialog.

    Thank you very much for replying. I've tried 64-bit and 32-bit, and both have the issue. Saving a very long page using build-in save-as-mhtml or "Save Page WE" extension behaves normal. The issue only exists with saved PDF. However, actually, I really prefer PDF over those html based files since it is easier and intuitive for distribution. Still looking for a solution for that. Many thanks again though. 🙂

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

    Saving a very long page using build-in save-as-mhtml or "Save Page WE" extension behaves normal.

    Does the print to pdf way work fine though? Just curious. That way will be paginated. Just wondering if it works in that case.

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

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

    Saving a very long page using build-in save-as-mhtml or "Save Page WE" extension behaves normal.

    Does the print to pdf way work fine though? Just curious. That way will be paginated. Just wondering if it works in that case.

    Printing will split the webpage into multiple A4 or other sized pages, while save-as-pdf will export what you can see exactly from the original webpage. The page style will preserved pretty well by save-as-pdf, but could possibly change for printing.

  • @jackyspeed Yes, but just wanted to know if all pages for the page are made available to print to pdf and actually end up in the pdf file.

    Anyway, have a link to a page the reproduces the problem? From there, a minimal testcase could probably be made. As in, I'm wondering what the height and width limit currently is.

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

    @jackyspeed Yes, but just wanted to know if all pages for the page are made available to print to pdf and actually end up in the pdf file.

    Anyway, have a link to a page the reproduces the problem? From there, a minimal testcase could probably be made. As in, I'm wondering what the height and width limit currently is.

    Thank you very much for discussing this with me.

    Yes, it can be confirmed that printing will actually cover all the page content even it is a very long one.

    Here is an example of the lengthy page that can reproduce the issue for save-as-pdf function:

    https://www.quora.com/Do-people-notice-when-you-wear-a-Rolex

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

    Here is an example of the lengthy page that can reproduce the issue for save-as-pdf function:
    https://www.quora.com/Do-people-notice-when-you-wear-a-Rolex

    Right-clicking and choosing save as pdf on that page works fine for me in Opera 54.0.2952.60 64-bit on Windows 10 x64 with 8GB of RAM. Loading the saved pdf in Opera works fine too. And, the pdf seems to be complete.

    Have another example?

  • @jackyspeed

    Here is an example of the lengthy page that can reproduce the issue for save-as-pdf function:

    With Opera's current stable version 54.0.2952.60, I manage to save that website as a pdf file even with my old netbook (Windows 7 32-bit, 2 GB RAM). And my PDF Reader opens this file without any problems and displays it completely. With Opera's ad blocker enabled, the file size of that pdf file is 1.08 MB. I could upload it somewhere, if needed, for comparison.

    Also the storage of more extensive websites with Opera's built-in PDF-function is possible for me, for example an arbitrarily chosen lengthy Wikipedia article.

    I think there must be another limiting factor beyond too little RAM which triggers this error message on your computer, @jackyspeed.

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

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

    Here is an example of the lengthy page that can reproduce the issue for save-as-pdf function:
    https://www.quora.com/Do-people-notice-when-you-wear-a-Rolex

    Right-clicking and choosing save as pdf on that page works fine for me in Opera 54.0.2952.60 64-bit on Windows 10 x64 with 8GB of RAM. Loading the saved pdf in Opera works fine too. And, the pdf seems to be complete.

    Have another example?

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

    @jackyspeed

    Here is an example of the lengthy page that can reproduce the issue for save-as-pdf function:

    With Opera's current stable version 54.0.2952.60, I manage to save that website as a pdf file even with my old netbook (Windows 7 32-bit, 2 GB RAM). And my PDF Reader opens this file without any problems and displays it completely. With Opera's ad blocker enabled, the file size of that pdf file is 1.08 MB. I could upload it somewhere, if needed, for comparison.

    Also the storage of more extensive websites with Opera's built-in PDF-function is possible for me, for example an arbitrarily chosen lengthy Wikipedia article.

    I think there must be another limiting factor beyond too little RAM which triggers this error message on your computer, @jackyspeed.

    Thank you both for the testing. Inspired by your comments, I have another try on a lengthy page, as well as the mentioned wiki page. I occurred to me that maybe the issue is not with the opera, but with the PDF reader. And it turns out to be true. When I open the saved lengthy page using Adobe PDF reader, error pops up. When I open it using other reader, such as WPS, it behaves normal. Truth is, the pdf is saved by Opera probably in a correct way, yet the reader fails to read such a long pdf layout.

    May I ask, what PDF readers you used?

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

    I think there must be another limiting factor beyond too little RAM which triggers this error message on your computer, @jackyspeed.

    By the way, I am using a 16 GB memory, so this may no be the reason. I am using the latest version of Opera.

  • I have a deeper dig, and found that the saved PDF is on the version of "Acrobat 5.x". I am not sure, but maybe the saved version is pretty low, which leads to a less compatibility? (200-inch limitation) Just my guess.

  • @jackyspeed

    May I ask, what PDF readers you used?

    As mentioned above, I use Sumatra PDF.

    You may want to try its portable version, which doesn't modify anything outside its own folder and which runs without any installation process, just double click on the "SumatraPDF.exe" 🙂

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

    I have a deeper dig, and found that the saved PDF is on the version of "Acrobat 5.x". I am not sure, but maybe the saved version is pretty low, which leads to a less compatibility? (200-inch limitation) Just my guess.

    I have read about such a restriction within some Adobe (Acrobat) products too. Maybe @burnout426, whose knowledge I can't keep up with, knows more...

  • I had just tested the PDF in Opera and Chrome. I didn't test in Adobe or Foxit or anything.

    As for the version of the PDF, you can try modifying the pdf header in the file with a hex editor to see if it makes any difference in Adobe. Change it from 1.4 to 1.7 or 2.0 for example. You can try versions in between too. I don't know how much syntax changed between those versions, so you'll have to test to see if it makes Adobe happy. You also might want to generate a PDF with Adobe if you can and see what version it uses by default. I'll install Adobe later and play with it.

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

    @jackyspeed

    May I ask, what PDF readers you used?

    As mentioned above, I use Sumatra PDF.

    You may want to try its portable version, which doesn't modify anything outside its own folder and which runs without any installation process, just double click on the "SumatraPDF.exe" 🙂

    Got it. Thanks!

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

    I had just tested the PDF in Opera and Chrome. I didn't test in Adobe or Foxit or anything.

    As for the version of the PDF, you can try modifying the pdf header in the file with a hex editor to see if it makes any difference in Adobe. Change it from 1.4 to 1.7 or 2.0 for example. You can try versions in between too. I don't know how much syntax changed between those versions, so you'll have to test to see if it makes Adobe happy. You also might want to generate a PDF with Adobe if you can and see what version it uses by default. I'll install Adobe later and play with it.

    Much appreciated for your suggestion. I will take a look at those file headers. 🙂

  • 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.

  • It looks like you have to add

    /UserUnit value
    

    (where value is something high)

    to every obj entry in the pdf source that's out of range to get Adobe load things right. But, I have yet to confirm this as there are quote a few obj entries to modify in the file.