• 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

    Print "Save as PDF" in A4 format

    Opera for Windows
    3
    13
    2363
    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.
    • plovec
      plovec last edited by

      This is my Save as PDF on the Print dialog

      20191016_OperaPrintSaveAsPDF.png

      Reply Quote 0
        1 Reply Last reply
      • uzifix
        uzifix last edited by

        OK now I have "somewhat" found the solution. I tested on a different page, and the dialogue looked exactly like in your example.

        But I was specifically asking for the purposes of my company's website, where there is a dynamically-generated product sheet which automatically opens the print dialogue. The sheet is designed for portrait format, so the CSS code of the page contains @page {size: portrait;} and removing that part of the code actually solved the issue. So I guess I have found a bug? Because Opera does actually interpret this piece of the code, which is good, but interprets it "too strongly" - as in, it does not only decide the orientation of paper for you, but also the format, margins, etc. and doesn't allow you to change anything

        Reply Quote 1
          burnout426 1 Reply Last reply
        • burnout426
          burnout426 Volunteer @uzifix last edited by

          @uzifix Can you test and see what Chrome does in the same situation? If it does the same, getting this fixed/change in Chromium should fix it in Opera too.

          Reply Quote 0
            1 Reply Last reply
          • uzifix
            uzifix last edited by

            Finally found the time to test it - yes, the behaviour is the same in Chrome.

            Reply Quote 1
              1 Reply Last reply
            • burnout426
              burnout426 Volunteer last edited by burnout426

              Okay. I'd look on the net to see if there's a good Chrome workaround (that's better than just editing the CSS in developer tools) for this and then try the workaround in Opera. There might even be a Chrome extension that automatically does this. You might be able to make a simple extension that overrides the css on all sites (or a single site).

              Short of that though, your best bet is to file a Chromium bug. https://bugs.chromium.org/p/chromium/issues/list and click "new". If you do, link to the bug here please.

              Reply Quote 0
                1 Reply Last reply
              • uzifix
                uzifix last edited by

                OK, well my solution was just removing the guilty code, as it is not necessary for the page to run correctly.

                But I posted the bug here:
                https://bugs.chromium.org/p/chromium/issues/detail?id=1016235&can=2&q=save as pdf

                Reply Quote 1
                  burnout426 1 Reply Last reply
                • burnout426
                  burnout426 Volunteer @uzifix last edited by

                  @uzifix Not sure if you've been monitoring the bug, but see https://bugs.chromium.org/p/chromium/issues/detail?id=1016235#c18 as a fix has been made. You can test it in Chrome Canary to see if it works.

                  Reply Quote 0
                    uzifix 1 Reply Last reply
                  • uzifix
                    uzifix @burnout426 last edited by

                    @burnout426 Thanks for letting me know! Yeah I've been receiving copies on my e-mail address. I just tested it and it works correctly now! I will send a message to the bugtracker as well for the sake of completion

                    Reply Quote 1
                      1 Reply Last reply
                    • burnout426
                      burnout426 Volunteer last edited by

                      Sorry I mislead you. I thought the fix was already in Canary.

                      Reply Quote 0
                        uzifix 1 Reply Last reply
                      • uzifix
                        uzifix @burnout426 last edited by

                        @burnout426 No worries at all! It's my fault too, I tested it and didn't check the "Save as PDF" option but tried with an actual printer instead... we all make mistakes haha

                        Reply Quote 1
                          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-