• 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

    Where is the portrait vs landscape choice?

    Opera for Windows
    5
    21
    7615
    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.
    • burnout426
      burnout426 Volunteer @Kramy last edited by

      @kramy Do you have a link to a public page that triggers landscape print layout?

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

        @burnout426 It's usually invoices for me - so public pages? Not yet.

        @leacg Yes, Chrome and other browsers do it too.

        Here's an example with personal info blotted out. Amazon is portrait. Newegg.ca is portrait. Newegg order invoices are landscape with no option to change it.

        deb9c7be-a528-429b-9f0d-d22dd30877f1-image.png

        fed3fa92-ef9b-4dd5-8641-76dee78eac24-image.png

        69f60ce8-bc6b-44c1-9857-008d024b668a-image.png

        Reply Quote 1
          burnout426 leocg 2 Replies Last reply
        • sgrandin
          sgrandin last edited by

          Thanks Kramy for mentioning it too. It's been a couple of months, but my hazy memory is that it was also an invoice or something similar that led me to post.

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

            @kramy When you're on the invoice page you want to print, close the print dialog if it's open, hit ctrl + shift + i to open the developer tools. Then, on the "sources" tab, look at the page's css files and see if you can find something like:

            @media print
            {
            @page
            {
            size: landscape;
            }
            

            If so, I think Chromium honors that strictly without a way to override it.

            To test if it's a problem, delete size: landscape; from the css file (the css is editable there) and try hitting ctrl + p again to see if it then shows the layout drop-down to switch between landscape and portrait.

            If you find this is the case, the site needs to fix their css to not force landscape mode.

            I found https://ocw.mit.edu/ans7870/SP/SP.236/S09/lecturenotes/drugchart.htm as an example page. (Found that at https://superuser.com/questions/1455052/how-do-i-force-chrome-to-print-a-web-page-in-portrait-mode)

            I also think there's an old post on these forums about this. Will see if I can find it.

            Reply Quote 1
              burnout426 Kramy 2 Replies Last reply
            • sgrandin
              sgrandin last edited by

              Btw, I reported this as a bug on Oct 21 -- BS-20978. Would have thought it would have been fixed by now.

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

                @burnout426 said in Where is the portrait vs landscape choice?:

                also think there's an old post on these forums about this. Will see if I can find it.

                Couldn't find the thread on it, but found the bug I was thinking of (and previously commented in it and starred it). See https://bugs.chromium.org/p/chromium/issues/detail?id=1016235. There's also https://bugs.chromium.org/p/chromium/issues/detail?id=1098468.

                I found those by searching for https://bugs.chromium.org/p/chromium/issues/list?q=css page size landscape&can=1.

                https://bugs.chromium.org/p/chromium/issues/detail?id=1202672&q=css page size landscape&can=1 is another bug that sounds like the issue. But, that one was marked "wontfix" because the user didn't respond.

                Reply Quote 1
                  1 Reply Last reply
                • Kramy
                  Kramy @burnout426 last edited by

                  @burnout426 Yep, that did it. Found it in cartDetail-blahblahhex.css - as soon as I removed it, I was able to change the orientation in the print dialog again.

                  That's just silly that this is even a feature. I see so many ways that this could go wrong. Only makes sense for precisely laying out stuff, which business apps might use - but then they should be using locked down LTS web browsers, not public builds.

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

                    @sgrandin This is something that Opera inherits from Chromium. Chromium bugs need to be filed at https://bugs.chromium.org/p/chromium/issues/list.

                    In my opinion, it's https://bugs.chromium.org/p/chromium/issues/detail?id=1098468 that represents this issue (even if it's about "portrait" instead of "landscape"). The bug has been stalled, but someone could comment on the bug and point to this forum etc.

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

                      @burnout426 Presumably, Opera communicates with Chromium's developers

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

                        @sgrandin Sometimes.

                        Reply Quote 0
                          1 Reply Last reply
                        • leocg
                          leocg Moderator Volunteer @Kramy last edited by

                          @kramy So it's probably a Chromium issue, if not a page one.

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

                            As a workaround, you can install User CSS. Then, when on the site that has the problem, click the extension's icon, add:

                            @media print {
                                @page {
                                    size: auto;
                                }
                            }
                            

                            for the site and click the extension's icon again to save it.

                            Then, reload the page if it's still open. From then on, you should be able to print with the orientation you want for the site.

                            Reply Quote 1
                              Kramy 1 Reply Last reply
                            • Kramy
                              Kramy @burnout426 last edited by

                              @burnout426 Very helpful work-around! Thank you.

                              In my opinion this should still be in the control of the end user. It's their printer and paper - they probably know best.

                              Reply Quote 1
                                1 Reply Last reply
                              • sgrandin
                                sgrandin last edited by sgrandin

                                Just did the same thing on a Costco order. No way to change it within the program (without extra code). Then checked FF, Chrome and Edge, and it does the same. Looks like underlying site program needs modification or a workaround created by Opera.

                                Reply Quote 0
                                  1 Reply Last reply
                                • Locked by  leocg leocg 
                                • 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-