Closed rosehsu47 closed 2 years ago
Hi, see https://github.com/SebastiaanKlippert/go-wkhtmltopdf/issues/74 https://github.com/SebastiaanKlippert/go-wkhtmltopdf/issues/62 and others.
You can only add one page from memory because of how wkhtmltopdf is designed, it uses stdin to pass the content.
In most cases you won't need it, you can just join the HTML pages before you pass them in, see https://github.com/SebastiaanKlippert/go-wkhtmltopdf/issues/54 for an example.
Thank you for the reply! I will go check those issues 👍
I used pdfGenerator.AddPage() to add 2 different pages both generated from html (p.1 & p.3), but the second html page (p.3) of the result file is always empty.
This is my code.
functions