this post was submitted on 09 Sep 2023
42 points (83.9% liked)
Firefox
17890 readers
4 users here now
A place to discuss the news and latest developments on the open-source browser Firefox
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Example page?
Also i'd suggest you post "steps to reproduce" together with your "expected result" and "actual result".
That way others can compare and verify and we already have everything necessary to potentially open a bugzilla ticket.
this user bugreports!
Printing this page as PDF, set page size to A4 , scaling 100% ( default ) https://www.economist.com/leaders/2023/09/07/chinas-belt-and-road-initiative-will-keep-testing-the-west
First bar graph is split across page 2 & 3.
Pick any article from the economist, which has graphs or charts and it will happen , same with ft.com, Bloomberg.
The website is responsible for providing a print layout, but the browser should be smarter and assume that the website was made by obstinate toddlers.
Prints fine on Chromium & Edge. The inferior browsers move the "image" so it does not span pages.
Before anyone gets upset , my default browser on all devices is Firefox.
As a workaround, i found that the addon Print Edit WE includes a "Fix Page Breaks - All" function. Just click the toolbar icon and then on the
Tools
buttonResult:
Hope this helps a little.
PS:
I'd guess that when you try to make your product "to smart" it can have the unwanted concequence of gaining greater complexity and with it a higher effort for maintainablility, which might not be something you want.
Thanks. Added that addon. This will help a lot.
Well, I didn’t post “steps to reproduce” because I’m not doing anything special. Open the menu, click print, click print in the print modal window. I expect that I get a printed page, which I do, but Firefox doesn’t crop to the margins. The bottom margin is whited out, but it’s like parts of the page are hidden behind it so between every page there is missing text. It’s not my printer because the same happens when I try to print to pdf, and I also use Firefox at work on a different machine with different printers and get the same result. I’m not at my computer at the moment to post an example page.
As others already have mentioned, the issue might only be partially firefox's fault. Meaning that webpage that wants to be printable should normally have to provide a print layout and if it doesnt then it is up to the browser to make a best guess at how to render it correctly for printing. Sadly the modern web has a huge amount of web content (sticky headers, floating elements, shadow/hidden elements, and so on) that can make it really hard to interpret pages suitable for printing.
That said, that doesnt mean that there is no room for improvement to firefox's "best guess".
I'm genuinely sorry but I can't reproduce the effects you're describing. I generate pdfs from Firefox all the time and have never encountered an issue like this.
That's why describing how to reproduce is important.
Could there be an addon you have which is causing this problem? That would explain why it happens for you on different machines.