Op 1/03/2011 12:09, Griet Mertens schreef:
> I use the following code to read a HTML document and add it to a PDF.
> Everything works perfect, except the font size. I can change the font
> family, the font color,... but for some reason I cannot change the font
> size. What am I doing wrong?
It's "font-size" instead of "size".
> styles.loadStyle("pdfFont", "size", "15px");
styles.loadStyle("pdfFont", "font-size", "15px");
Please note that the HTML parsing functionality is currently being
rewritten from scratch.
The new code will be released in iText 5.1.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText® 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