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

Unable to generate more than one page while reading different htmls #7

Closed
shubhangseth opened this issue Apr 11, 2017 · 2 comments
Closed

Comments

@shubhangseth
Copy link

I am trying to generate a pdf with one page from one html and the second page from another html. But the second page never gets printed. Its comes blank. When I try and create 2 different pdfs then they are created perfectly. Just not in a single one. Can you please share code for such a scenario?

@shubhangseth
Copy link
Author

Had to write the html into a new file and use NewPage. Doesn't work with NewPageReader and bytes.

@SebastiaanKlippert
Copy link
Owner

Correct. This is also stated in the docs for type PageReader.

You can add only one Page from a reader

The reason is that I can only pass one page from stdin to wkhtmltpdf as far as I know. But your workaround sound good 👍

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

2 participants