PDF の日本語

 PDF リファレンスを調べたら、文字列にはPDFDocEncoding かUnicode を使えと書いてあった。

Text strings are encoded in either PDFDocEncoding or Unicode character encoding. PDFDocEncoding is a superset of the ISO Latin 1 encoding and is documented in Appendix D. Unicode is described in the Unicode Standard by the Unicode Consortium (see the Bibliography).
By PDF Reference Version 1.6 - 3.8.1 Text Strings P131 L3

 んでUnicodeエンコードするときには、最初の2バイトにUnicode バイトオーダーマーカーなる、254 と255 を記述しろとある。

For text strings encoded in Unicode, the first two bytes must be 254 followed by 255. These two bytes represent the Unicode byte order marker, U+FEFF, indicating that the string is encoded in the UTF-16BE (big-endian) encoding scheme specified in the Unicode standard. (This mechanism precludes beginning a string using PDFDocEncoding with the two characters thorn ydieresis, which is unlikely to be a meaningful beginning of a word or phrase).
By PDF Reference Version 1.6 - 3.8.1 Text Strings P132 L1

 U+FEFF ってなんだと色々ググッていたら、ちょうど同じ症状に悩んだ人々を発見。

http://japan.nucleuscms.org/bb/viewtopic.php?t=272&

 結局、mbfpdf.php を利用。中の_unicode($str) 関数で Author とかtitle とかのmetadata を変換することで、無事文字化けを解決したのであった。