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?

                HTMLWorker htmlWorker = new HTMLWorker(document);
                FileReader fileReader = new FileReader(fileName);
                StyleSheet styles = new StyleSheet();
                styles.loadStyle("pdfFont", "size", "15px");
                styles.loadStyle("pdfFont", "face", "times-roman");
                htmlWorker.setStyleSheet(styles);
                htmlWorker.parse(fileReader);

Thanks,
Griet Mertens

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/cannot-change-font-size-in-StyleSheet-tp3329633p3329633.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
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

Reply via email to