arachnys / athenapdf

Drop-in replacement for wkhtmltopdf built on Go, Electron and Docker
MIT License
2.26k stars 186 forks source link

The generated PDF has only one page #197

Closed VarroReve closed 5 years ago

VarroReve commented 5 years ago

The generated PDF only has one page, which the origin website has several pages.

screenshot of the generated PDF: image

screenshot of the website: image

http://sakyavarro.cn/resume

I know aggressive mode can work, but since it's my resume page, i want to keep the PDF pretty as the html. Please help me, I would really appreciate it

MrSaints commented 5 years ago

The behaviour is expected. Your website was designed with a div set to match exactly the height of the screen, and to overflow. I'd suggest applying some print specific styles to remove the height: 100%, and any overflow.