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

Support for multiple HTML files to single PDF #4

Open
emmenko opened this issue Mar 12, 2014 · 1 comment
Open

Support for multiple HTML files to single PDF #4

emmenko opened this issue Mar 12, 2014 · 1 comment

Comments

@emmenko
Copy link

emmenko commented Mar 12, 2014

Hi @cloudify,

I see that the wkhtmltopdf supports multiple HTML files as input

$ wkhtmltopdf --extended-help
Name:
  wkhtmltopdf 0.9.9

Synopsis:
  wkhtmltopdf [OPTIONS]... <input file> [More input files] <output file>

Description:
  Converts one or more HTML pages into a PDF document, *not* using wkhtmltopdf
  patched qt.

So basically I can pass a list of different HTML inputs to be rendered in one PDF.
I was wondering if this is also supported in this library but I suppose it's not (I haven't found it anyway).

So what I would do is basically something like

val pdf = Pdf(PdfConfig.default)
val os = new ByteArrayOutputStream
pdf.run(Seq(template1, template2, template3), os)

to be able to generate the correct command line.

What do you think? Is that possible?

Thanks

@wahyuwidjaja
Copy link

Hi,

Have similar problem, is there a way to add new pages to the same pdf file?
val pdf = Pdf(PdfConfig.default)
val os = new ByteArrayOutputStream
pdf.run(template1, os)
pdf.run(template2, os)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants