Hi I'm newby and facing a struggling issue. I must create a PDF/A file with
arial font starting from html files and obviously must be able to keep format
information (bold, italic etc...).
This is a snippet of my code
BaseFont baseFontGenerale = BaseFont.createFont(FONTS_PATH + "/arial.ttf",
BaseFont.CP1252, BaseFont.EMBEDDED);
baseFontGenerale.setSubset(true);
StyleSheet vStyleSheet = new StyleSheet();
vStyleSheet.loadTagStyle(HtmlTags.BODY,HtmlTags.FACE, "Arial Unicode MS");
List <Element> vElements = HTMLWorker.parseToList(new StringReader(TESTO),
vStyleSheet);
...............................................
These instructions avoid the Helvetica not embedded exception to be thrown and
everything works fine on Windows but on Unix platform the exception continues
to be thrown.
Any help would be appreciated.
Thanks
Fulvia Grignaschi
Dott.ssa Fulvia Grignaschi.
Consoft Sistemi S.p.A.
20158 Milano - Via G. Candiani 73
Centralino: +39 02 48022861<tel:%2B39%2002%2048022861> - Fax: +39 02
43981857<tel:%2B39%2002%2043981857>
Diretto: +39 02 99315143<tel:%2B39%2002%2099315143>
e-mail: fulvia.grignas...@consoft.it<mailto:fulvia.grignas...@consoft.it>
Web http://www.consoft.it<http://www.consoft.it/>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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