I'm using ITextRenderer to generate HTML to PDF file in mine Java App. Its works well and all but we spotted a problem in some of our PDF's. I've found just one reference in the web and also here at stack (itext-xmlworkerhelper-ignores-value-attribute-of-li-tag)
Does anyone can give a help? The problem is exactly the same as in the provided link.
I'm willing to change the API to make that work if someone suggests another one that is for sure to work...
Thanks!
Here goes the code for generating it:
org.xhtmlrenderer.pdf.ITextRenderer renderer = new org.xhtmlrenderer.pdf.ITextRenderer();
renderer.setDocumentFromString(strHhtml);
renderer.layout();
renderer.createPDF(out);
renderer.finishPDF();
Where strHtml is the html content:
<ol style="list-style-type: lower-alpha">
<li>aaaa</li>
<li>bbbbbbb</li>
</ol>
<p style="margin-left: 42.55pt"><strong>Note:</strong> simple paragraph</p>
<ol style="list-style-type: lower-alpha">
<li value="3">ccccc</li>
<li value="4">bbbbbb</li>
</ol>