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.

  • igorlogius
    link
    fedilink
    English
    49
    edit-2
    6 months ago

    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.

    • 80386SX
      link
      fedilink
      6
      edit-2
      6 months ago

      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.

      • igorlogius
        link
        fedilink
        English
        6
        edit-2
        6 months ago

        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 button

        Tools Button

        Result:

        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.

        • 80386SX
          link
          fedilink
          36 months ago

          Thanks. Added that addon. This will help a lot.

    • @watson387OP
      link
      36 months ago

      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.

      • igorlogius
        link
        fedilink
        English
        14
        edit-2
        6 months ago

        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”.

      • @DogMuffins@discuss.tchncs.de
        link
        fedilink
        English
        136 months ago

        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.

  • melroy
    link
    fedilink
    86 months ago

    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.

  • U de Recife
    link
    fedilink
    56 months ago

    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).

      • U de Recife
        link
        fedilink
        7
        edit-2
        6 months ago

        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.

        • @nitefox@lemmy.world
          link
          fedilink
          -16 months ago

          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.

  • @heeplr@feddit.de
    link
    fedilink
    5
    edit-2
    6 months ago

    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.

      • @heeplr@feddit.de
        link
        fedilink
        1
        edit-2
        6 months ago

        true. still, even popular sites don’t provide decent CSS for printing but rather PDF download.

    • @watson387OP
      link
      76 months ago

      While I completely understand what you’re saying, this is only an issue in Firefox and it also affects printing to PDF.

  • @makeasnek@lemmy.ml
    link
    fedilink
    46 months ago

    Use the screenshot tool Firefox comes with to screenshot the entire page, then print the screenshot. That’s what I do.

  • @bcbrz@lemmy.ml
    link
    fedilink
    36 months ago

    Firefox printing is painful. Didn’t respect grayscale setting for PDFs, fixed for a few months, back to doing it again.

  • mich
    link
    fedilink
    26 months ago

    copy paste plain text to text editor or word doc?

    • @rambos@lemm.ee
      link
      fedilink
      36 months ago

      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

  • Rustmilian
    link
    fedilink
    English
    19 days ago

    It just rip the page and convert it to other formats and print it using external tools.

    • @watson387OP
      link
      16 months ago

      No, it doesn’t. My printer isn’t shit and it does it when I try to save to pdf also.

    • 80386SX
      link
      fedilink
      2
      edit-2
      6 months ago

      CTRL + SHIFT + K

      :screenshot --dpr 3 --fullpage

      Gang UNITE !!! 😁