danfickle / danfickle/openhtmltopdf

Render PDF from multiple HTML files

Open
#214 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

Hi all, is it possible to render a PDF from multiple input files/strings, like in [this example](https://github.com/flyingsaucerproject/flyingsaucer/blob/master/flying-saucer-examples/src/main/java/PDFRenderToMultiplePages.java) from flyingsaucer?
I had a problem with flyingsaucer, it throws something like "Page 21 was requested but document has only 20 pages"... 😞
I could set a `baseURL` for every page, on the `setDocumentFromString` method.

With openhtmltopdf I should concatenate all the HTMLs into one, right? But the base folder is not the same for all of them... 😄 In some of them it is "../styles/main.css" but in some other "../../styles/main.css" (deeper folder)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.