Hi ,
I've downloaded the latest version of itext and built it ie 5.2.2 and have an
issue with bullet points and ordered lists in pdf document generation.
I have a html document which I generate a pdf from using the HTMLWorker to
parse the html.
sample html :
<ol>
<li><span style="font-family: Arial;"><strong>This is in bold
Arial.</strong></span></li>
<li><span style="font-family: Courier New;">Italic Courier</span></li>
<li><span style="font-family: Times New Roman;"><u>underline</u></span></li>
</ol>
Bullets:<br />
<ul>
<li>First bullet</li>
<li>Second bullet</li>
<li>Third bullet</li>
</ul>
With Itext 2.1.7 version the above html generated a pdf with the numbers for
the <ol> elements and bullet points for the <ul> elements.
But for IText 5.2.2 the bullet point symbol and the numbers in the list don't
appear in ther pdf document.
eg 2.1.7 IText produces this :
1.This is in bold Arial.
2. Italic Courier.
3. underline
-------------
Bullets:
* First bullet
* Second bullet
* Third bullet
vs 5.2.2 Itext Produces this
This is in bold Arial.
Italic Courier.
underline
-----------
Bullets:
First bullet
Second bullet
Third bullet
Is this a known issue with IText 5.2.x? Note when I debug this the list symbols
are present after the HTMLWorker parse and the PDFDocument Class sets the
symbol in the pdfline class when processing the ListItem but then appears to
overwrite the list symbol during further processing.
So in the PdfDocument Class in the flushLines api this code is bypassed since
the list symbol is null ?
if (l.listSymbol() != null) {
ColumnText.showTextAligned(graphics, Element.ALIGN_LEFT, new
Phrase(l.listSymbol()), text.getXTLM() - l.listIndent(), text.getYTLM(), 0);
}
regards
Paddy
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php