I'm using 5.3.4 version and PdfAWriter class.
With HTMLworker using stylesheet (as you can see in the snippet of code I 
attached) I have problems only on Unix platform and this is my question: why is 
it working fine on Windows and not on Unix?
I'm trying using XMLworker without stylesheet but I'm still getting helvetica 
not embedded exception. I studied a lot on iternet and on ItextInAction book 
but I cannot fix this very urgent issue. Il Pdf/a requires embedded fonts and 
helvetica cannot be embedded (I tried adding helvetica.pfb without success) how 
can I produce correctly a PDF/a?


Dott.ssa Fulvia Grignaschi

-----Messaggio originale-----
Da: iText Info [mailto:i...@1t3xt.info] 
Inviato: giovedì 12 giugno 2014 10.36
A: itext-questions@lists.sourceforge.net
Oggetto: Re: [iText-questions] I'm subscribed! please do not thrash this 
message.

1. Which version of iText are you using?
Only the latest versions have good PDF/A support. You need the itext-xtra jar 
and you need the PdfAWriter class.
2. You're using HTMLWorker
This class has been abandoned in favor of XML Worker: 
http://itextpdf.com/sandbox/xmlworker
3. I don't see you creating a FontProvider instance anywhere.

Please start studying PdfAWriter and XML Worker.
Then return to the mailing-list if you have further questions.

Fulvia Grignaschi schreef op 12/06/2014 9:17:
>
> 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


------------------------------------------------------------------------------
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

------------------------------------------------------------------------------
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

Reply via email to