This has been an issue for a long time. I’ve been trying to avoid Chromium based browsers, but Firefox seems to be unable to print a lot of web pages without cutting off the content between pages. This is Firefox specific, as it doesn’t happen with Chromium browsers. It’s really a pain in the ass when I need to print something I have to open another browser and print it from there. I see tons of complaints about this online going back for years. I just spent the past two hours trying (unsuccessfully) to print a recipe correctly. I eventually gave up, opened Edge and printed from there. The current state of web browsers is dogshit. It’s either give up all of your privacy or use broken stuff. Neither is good.
Firefox seems to be unable to print a lot of web pages
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:
the browser should be smarter and assume that the website was made by obstinate toddlers.
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.
deleted by creator
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.
Also try to play with “More settings” options within the print pop-up window. Allowing you to scale the page or use a simplified version or try to rotate the page to landscape, etc.
it’s the site’s fault. it’s their responsibility to provide a print layout.
If they don’t, the browser has to do best guesses and FF probably doesn’t try to be very smart.
And it’s not worth the effort either. Printing on paper is becoming rare.
print to pdf is not becoming rare though, and requires more or less the same formatting.
true. still, even popular sites don’t provide decent CSS for printing but rather PDF download.
While I completely understand what you’re saying, this is only an issue in Firefox and it also affects printing to PDF.
I too have this issue, and I use a similar solution.
Case in point, for those asking for examples: exporting Reveal.js slides to PDF. Never works on Firefox (my browser of choice). Solution? Any chrome based browser.
OS: Linux, Arch (updated).
OS: Linux, Arch (btw).
FTFY
Sorry, please don’t take this as an attack. It’s just that I’m so tired of that lame joke.
I tried to present this as an observation. When filing a bug report (which I tried to emulate here), you have to take into account the distro, as it may influence the behavior of the software in question. Namely here Firefox.
Now, does that make you laugh? Good, laugh about it. But please think about it in this context. You are laughing about a personal choice. Prejudice is taking hold of your mind. You’re turning someone’s choice into a strawman, easy to be laughed at just because.
It’s a bit like attacking vegans. Now it’s not about this or that person and their choice. They’re evened out, ridiculed, just because it’s memetic to do so. The same with Arch users, so it seems.
I don’t use Arch btw. There’s no btw because I don’t care about that. This just reminds me of how certain groups always have to hear the same old tired jokes about them, just because, individually, everyone telling those jokes feels it’s so clever to do so.
Sorry. I think we can do better than this here at Lemmy. Again, this is not an attack. Perhaps just a reminder.
Sorry, please don’t take this as an attack. It’s just that I’m so tired of that lame joke.
I tried to present this as an observation. When filing a bug report (which I tried to emulate here), you have to take into account the distro, as it may influence the behavior of the software in question. Namely here Firefox.
Now, does that make you laugh? Good, laugh about it. But please think about it in this context. You are laughing about a personal choice. Prejudice is taking hold of your mind. You’re turning someone’s choice into a strawman, easy to be laughed at just because.
It’s a bit like attacking vegans. Now it’s not about this or that person and their choice. They’re evened out, ridiculed, just because it’s memetic to do so. The same with Arch users, so it seems.
I don’t use Arch btw. There’s no btw because I don’t care about that. This just reminds me of how certain groups always have to hear the same old tired jokes about them, just because, individually, everyone telling those jokes feels it’s so clever to do so.
Sorry. I think we can do better than this here at Lemmy. Again, this is not an attack. Perhaps just a reminder.
Use the screenshot tool Firefox comes with to screenshot the entire page, then print the screenshot. That’s what I do.
Firefox printing is painful. Didn’t respect grayscale setting for PDFs, fixed for a few months, back to doing it again.
copy paste plain text to text editor or word doc?
Or just print screen right? Joking, but you could just save txt document then. Doesnt help if you care about formating and if you have content that is not just a text.
I had the same problem as OP together with ignoring grayscale settings, but its been a while since last time I tried that
deleted by creator
CTRL + SHIFT + K
:screenshot --dpr 3 --fullpage
Gang UNITE !!! 😁