Font Encoding

By: Axel Hallez - ahallez
Font Encoding
2002-11-11 01:56
Hello all,

I have a problem with the font encoding in my reports. I use the font Trebuchet MS, so the pdfFontName is trebuc.TTF. But when I export the report to PDF, an exception is raised about the font encoding:
com.lowagie.text.DocumentException: CP1252

Does this mean that I use an invalid encoding, and if so, which encoding do I have to use?

Thanks in advance,

Axel Hallez


By: Axel Hallez - ahallez
RE: Font Encoding
2002-11-11 03:02
I solved the problem.
The default pdfEncoding is set to CP1252.
However iText doesn't accept this. When the pdfEncoding is set to Cp1252 everything works.


By: Axel Hallez - ahallez
RE: Font Encoding
2002-11-11 03:02
I solved the problem.
The default pdfEncoding is set to CP1252.
However iText doesn't accept this. When the pdfEncoding is set to Cp1252 everything works.

Axel Hallez
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet
Feedback