Is it possible to set a formatted HTML
-Text (Color, Alignment, ...) from a HTMLEditor
to an "editable" PDF using iText
.
I didn't find anything on the internet.
Thanks.
Is it possible to set a formatted HTML
-Text (Color, Alignment, ...) from a HTMLEditor
to an "editable" PDF using iText
.
I didn't find anything on the internet.
Thanks.
The easiest way of doing this is (as Amedee suggested) using pdfHTML. It's an iText7 add-on that converts HTML5 (+CSS3) into pdf syntax.
The code is pretty straightforward:
To learn more, go to https://itextpdf.com/itext7/pdfHTML