Op 16/03/2011 8:38, Bipin Mallik schreef:
Hello,
We are using the "com.lowagie.text.Font" in our program and now we have updated the program with the new iText version as "com.itextpdf.text.Font" and got the error message as below
PDFDocumentHelper.java:110: cannot find symbol
symbol  : variable HELVETICA
location: class com.itextpdf.text.Font
valueFont = new Font(Font.HELVETICA, 12, Font.BOLD);

This won't work because the constants are now stored differently.
See for instance http://1t3xt.be/?049

Replace Font with FontFamily:
new Font(FontFamily.HELVETICA, 12, Font.BOLD);
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
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

Reply via email to