Skip to content

Support for multiple HTML files to single PDF #4

@emmenko

Description

@emmenko

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions