-
Notifications
You must be signed in to change notification settings - Fork 147
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
Possible to concatenate multiple HTML files into one PDF file? #33
Comments
+1, since this is standard behaviour of the wkhtmltopdf CLI. A possible solution would be: wkhtmltopdf({
'/path/to/file1.html': { pageSpecificOptions: 'here' },
'/path/to/file2.html': {}
}, { output: 'out.pdf' }) What do you think? |
I'd definitely take it ;) |
It hit me that my suggested solution won't work because the order of elements in an object are not guaranteed (http://stackoverflow.com/a/5525820/1453912). So it should be something like this: wkhtmltopdf([
{ file: '/path/to/file1.html', options: { pageSpecificOptions: 'here' } },
{ file: '/path/to/file2.html', options: {} },
], { output: 'out.pdf' }) |
This would indeed make a great feature. +1 |
PR #53 adds support for this. Also adds a couple of tests using Mocha. Feedback appreciated. |
+1 on that PR! I am using that branch currently and it works like a charm!! |
+1 |
no update in a year? |
Any updates :)? |
is there any progress here ? thank you |
Looking for the same thing |
For e.g if u have:
|
I have created a pull request to fix this issue: #119 |
I was trying to do the same thing in GO it worked ..
|
Basically just like this: http://explicate.blogspot.de/2011/01/multiple-html-files-to-single-pdf-with.html
The text was updated successfully, but these errors were encountered: