Search code examples
javajava-11pdf-reactor

How to create a single pdf from multiple html using pdfreactor


In my code I have a dynamic list of html strings and want to create a single pdf out of it using pdfreactor. The configuration.setMergeDocuments method only accepts pdf files as input, not html. What is the best way to get a single pdf out of multiple html strings using pdfreactor?


Solution

  • I have contacted support. Unfortunately there is no way (yet) to create a PDF from multiple HTMLs. You have to create all PDFs separately and then use a workaround with an empty HTML and the overlay option to merge the previously created PDFs.