Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] BaseFont with UTF-8?

Lars Nagel (Trium)

2007-07-24

Replies:

Hi all,

Is it possible to set the encoding to UTF-8 / Unicode instead of e. g.
BaseFont.CP1252. I want to pass UTF-8 to BaseFont.createFont(...) as it
is done with BaseFont.CP1252 in the following example.
BaseFont baseFont = BaseFont.createFont(urlFont.getPath(),
BaseFont.CP1252, BaseFont.EMBEDDED);

As there is no constant available in class BaseFont, I would like to
know the String I have to pass to the function.

Thanks in advance,
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.