Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid empty page at the end #36

Open
renatonmendes opened this issue Nov 13, 2018 · 10 comments
Open

Avoid empty page at the end #36

renatonmendes opened this issue Nov 13, 2018 · 10 comments
Labels

Comments

@renatonmendes
Copy link

Is there a way to avoid an extra blank page when printing ?

@sahilchopra
Copy link

+1

@sahilchopra
Copy link

Facing same issue. Any idea to prevent that

@BTARPAR
Copy link

BTARPAR commented Apr 16, 2019

+1

@officeabg
Copy link

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!

@a-x-
Copy link
Owner

a-x- commented Apr 27, 2019

Hey 👋
I'm here!

@a-x-
Copy link
Owner

a-x- commented Apr 27, 2019

@a-x- a-x- added the bug label Apr 27, 2019
@a-x-
Copy link
Owner

a-x- commented Apr 27, 2019

I'm creating a bunch of live examples now.
I have to check all the use-cases before accept this hacky-fix :'-)

@a-x-
Copy link
Owner

a-x- commented Apr 27, 2019

I apologize, I don't know how to test printing results automatically.

@officeabg
Copy link

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.

@oleg-am
Copy link

oleg-am commented Aug 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants