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

Extra page on generation #23

Open
mackensen opened this issue Mar 31, 2018 · 3 comments
Open

Extra page on generation #23

mackensen opened this issue Mar 31, 2018 · 3 comments

Comments

@mackensen
Copy link

I've noticed that if I pass the --no-margins parameter I get a second, blank page on the generated PDF.

@seveibar
Copy link

I've also had this issue, but not consistently across all my pages. I speculated that it might be caused by "one extra pixel" on the bottom of the page, so make sure you're not taking up too much room.

My solution to this in the mean time is to call out to pdftk to cut out all but the first page of the pdf.

pdftk rendered.pdf cat 1 output singlePagePDF.pdf

@mackensen
Copy link
Author

@seveibar that's been my workaround as well, and it's working fine.

@Szpadel
Copy link
Owner

Szpadel commented Apr 11, 2018

I'm not able to fix that, because splitting page to pages in internal chrome logic, and I have no control over that, but to make your live easier, I implemented --page-ranges, so you don't need any external tools to work around that.
Please also check if upgrading chrome makes a difference, because I wasn't able to find any page with that behavior using 67.0.3386.1

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

No branches or pull requests

3 participants