PdfXConformanceException
- From: bruno <bruno (at) lowagie.com>
- Date: Fri, 25 Aug 2006 13:18:40 +0200
GaneshPrakhya wrote:
>Hi Bruno,
>
>I am trying to create a PDF document with PDFX conformance. When I run the programme, I am getting the following exception.
>
>All the fonts must be embedded.
>
That's one of the requirements of PDF/X.
If you don't embed the font, iText will throw an Exception.
>BaseFont.createFont(BaseFont.HELVETICA,
>BaseFont.CP1252, BaseFont.EMBEDDED);
>
>
Helvetica is one of the 14 standard Type1 fonts (AKA the base14 fonts,
formerly known as the 'built-in fonts').
>Eventhough I say "BaseFont.EMBEDDED", it is still showing that fonts are not embedded.
>
That's documented in the tutorial: the base14 fonts are never embedded
regardless of the embedded parameter; the same goes for CJK fonts.
Some other fonts are always embedded, even if you set the embedded
parameter to false.
To solve this problem, you should use another font
(for instance arial.ttf, it looks very much the same as Helvetica).
br,
Bruno
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions