I use iText 5.5.4 in my web application. I have the following Java code to add tables and some HTML text to PDF:
HTMLWorker worker = new HTMLWorker(document)
...
worker.parse(new StringReader(html_snippets));
I am able to specify font size for Paragraph, etc., but I cannot seem to find a way to set font size for included HTML in the above situation.
Is there a solution to the above situation? Or change the above code?
Update
I found example here: I found examples here: https://developers.itextpdf.com/examples/xml-worker-itext5/html-tables
I should use XMLWorker instead of HTMLWorker.