wooio / htmltopdf-java

An HTML to PDF conversion library written in Java, based on wkhtmltopdf.
MIT License
173 stars 97 forks source link

Ablility to update all settings with a Map #16

Closed dariosilva closed 5 years ago

dariosilva commented 5 years ago

Since we can have multiples options to configure the generation of pdfs, I think that is useful to make a Map structure with the settings a pass it to the classes: HtmlToPdf and HtmlToPdfObject.

This way we can load a bunch of settings (e.g. from external properties files) in a few lines of code.

So, I propose to add two new methods to allow the update the settings with a Map.

dariosilva commented 5 years ago

Thank you @benbarkay :)