Hello,

i'm using iText 1.3.6 to generate PDFs and sending them to a fax server.
Unfortunately the fax server understands only unicode encoding like Adobe 
Destiller does.
I searched the mail archive and found severald answers. But the following 
example doesn't work. 
Whats's the mistake?

Document document = new Document();
PdfWriter writer = PdfWriter.getInstance(document, new 
FileOutputStream("c:\\temp\\test.pdf"));
BaseFont bf = BaseFont.createFont("c:\\windows\\fonts\\l_10646.ttf", 
BaseFont.IDENTITY_H, true);
Font font = new Font(bf, 12);
document.open();
document.add(new Paragraph("@@NUMBER123@@", font));
document.close();

 
Thank you for your help!

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