react-easy-print
react-easy-print copied to clipboard
Avoid empty page at the end
Is there a way to avoid an extra blank page when printing ?
+1
Facing same issue. Any idea to prevent that
+1
I created pull request #40 to address this issue.
Please verify if adding
.react-easy-print-print{ position: absolute; left: 0; top: 0; }
to your css file inside @media print { ... } will fix it.
Thank you!
Hey 👋 I'm here!
Similar issue: https://github.com/a-x-/react-easy-print/issues/9
I'm creating a bunch of live examples now. I have to check all the use-cases before accept this hacky-fix :'-)
I apologize, I don't know how to test printing results automatically.
Hey! This was a bush fix that worked at the time. Don't know if it works only with my CSS or will fix other cases. This is why I posted here, so others can tell :) and maybe help a poor soul or two. I actually end up using nothing and controlling everything from @media print.
works for me:
@media print { html, body { height:100vh; margin: 0 !important; padding: 0 !important; overflow: hidden; } }
there are another recipes: https://stackoverflow.com/questions/7846346/how-to-avoid-extra-blank-page-at-end-while-printing