-
Notifications
You must be signed in to change notification settings - Fork 114
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
full_page: true
doesn't render full page
#278
Comments
hey @remy727 I think there is a bit of a mixup here. The The PDF options available are https://pptr.dev/api/puppeteer.pdfoptions It's also not clear from your example of what you're wanting to happen? You want it to have both a fixed width/height for the viewport, but also capture overflowing content? How would that work? If the content was overflowing vertically, sure.. add another page. But if it overflows horizontally where would the content be expected to be rendered? PDFs don't allow for content to be rendered in two separate axes. |
Hi @abrom, Thank you for your reply.
Aha, got it. I tried without it but the same result.
So my HTML content is overflowing and shows vertical and horizontal scrollbars on my browser. With the above config, Grover doesn't generate a PDF with the full content. It just includes the content I can see without scrolling. Hope this makes sense. |
It sounds like you need to take a look at the styling of your page. If you've got something artificially clamping the height/width of the viewport, you can't expect the browser to then expand it?? You've told it to do otherwise! 😉 |
Hello!
Thank you for the great gem!
I want to convert HTML that overflows width and height to PDF but it only generates PDF with the showing viewport only.
My Grover configuration:
The text was updated successfully, but these errors were encountered: