Hi all,

I want to build a PDF/A document and tried to embed the Helvetica font 
(see code below), but when I check whether the font is embedded using 
BaseFont.isEmbedded(), false is returned. And the PDF Longlife (Trial 
Version) Validator of Seal Systems also indicates that the font 
"Helvetica" is not imbedded.

Document document = new Document(new Rectangle(width, height));
PdfWriter writer = PdfWriter.getInstance(document, new 
FileOutputStream("Test.pdf"));
document.open();
BaseFont helvetica = BaseFont.createFont(BaseFont.HELVETICA, 
BaseFont.CP1252, BaseFont.EMBEDDED);
Font font = new Font(helvetica, 12, Font.NORMAL);
writer.createXmpMetadata();
System.out.println(helvetica.isEmbedded()); // prints "false"
Table table = new Table(1);
table.addCell(new Phrase("Test", font));
document.add(table);
document.close();

Can and would you tell me what I have to do additionally?

Thank you,
Lars

-- 
Lars Nagel

Trium Analysis Online GmbH
Hohenlindenerstr. 1
81677 München 

Fon : +49 89 2060269 21
Fax : +49 89 2060269 11
Internet: www.trium.de

Amtsgericht Muenchen, HRB 134012
Managing Directors:
Dr. Martin Daumer, Michael Scholz


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to