Hi,
I'm using iText 2.1.7. I'm creating a PDF from data pulled from a DB. I'm
rendering text components and using HTMLWorker.parseToList() to render some
HTML components. This doesn't always work, but that's OK for now, I understand
the supported functionality is limited. (Some of the exceptions I've seen:
ExceptionConverter: java.io.FileNotFoundException, ClassCastException,
IllegalArgumentException.) . I'm catching any thrown exceptions from
HTMLWorker.parseToList() and skip that piece of data and move on. If the html
parses without exceptions, I add the returned elements to the document. Other
binary data is being added to the PDF with PdfWriter.addFileAttachment().
At the end of processing one set of data, I'm receiving the following exception
when I call Document.close():
EXCEPTION : java.lang.IllegalArgumentException: Font size too small: 0.0
java.lang.IllegalArgumentException: Font size too small: 0.0
at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.writeLineToContent(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.flushLines(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.newPage(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
at com.lowagie.text.Document.close(Unknown Source)
Do you have any idea what may be happening?
Are there any steps I can take before calling Document.close(), or otherwise to
work around this?
Thank you,
Art
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/