Print "Save as PDF" in A4 format
-
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
-
burnout426 Volunteer 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.
-
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.
-
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 -
burnout426 Volunteer 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.
-
uzifix 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
-
uzifix 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