adrg / go-wkhtmltopdf

Handcrafted Go bindings for wkhtmltopdf and high-level HTML to PDF conversion interface
https://pkg.go.dev/github.com/adrg/go-wkhtmltopdf
MIT License
249 stars 21 forks source link

Blank pdf for react website. #22

Closed anoop012345 closed 2 years ago

anoop012345 commented 2 years ago

I am trying to save a page from my site built in react. It generate the blank pdf as site is take sometime to load. Is there any way to fix this issue?

adrg commented 2 years ago

Hi @anoop012345. Is your website public by any chance so I can test the conversion?

Does it work if you use the wkhtmltopdf binary directly? If it doesn't, then there's not much I can do about it, as this package uses the wkhtmltox library, the same as the binary.

wkhtmltopdf https://yourwebsite.com out.pdf
adrg commented 2 years ago

Closing this issue as it has been addressed. Please reopen if there are any issues with the provided solution.