あちこちで書かれているように、iTextは5系にバージョンアップしてから日本語などを使う際に必要なiTextAsian.jarがそのままでは使えなくなってしまっています。
- http://d.hatena.ne.jp/thunderhead/20100408/1270695544
- http://abetuyo.net/blog/2009/12/itext-50-itextasianjar.html
こんな致命的な問題を誰もフィードバックしていないのかなぁ…と思いながらSourceForge.netのiTextプロジェクトのMLを検索してみたところ、以下のエントリを発見しました。
> I noticed that iTextAsian.jar still uses package from
> "com.lowagie.text.pdf.fonts/"instead of
> "com/itextpdf/text/pdf/fonts/" as in iText-5.0.5.jar.
> Is there a new version of iTextAsian.jar that uses
> "com/itextpdf/text/pdf/fonts/" as in iText-5.0.5.jar.Yes, and it can be found in the lib directory of the tarball of the book
http://sourceforge.net/mailarchive/message.php?msg_id=27013480
examples.
the book examplesってなんだよ!と思ったのですがどうやら以下のディレクトリのことを指しているようです。
なのでここにあるiTextAsian.jarをダウンロードして使う…というのがいまのところは一番まともな使い方、ということになるでしょうか。