Date: 05/04/03
- Next message: Jean-Christian Imbeault: "Re: [PHP-I18N] trimming spaces from multibyte strings"
- Previous message: Moriyoshi Koizumi: "Re: [PHP-I18N] trimming spaces from multibyte strings"
- In reply to: Claire Hector: "Re: [PHP-I18N] PDF document with Japanese characters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Claire,
Thanks for your suggestion. I could not reply you quickly.
>> Firstly, though what version of php are you using?
I am using php - 4.3.1
The following code is workign for me. Here I have changed "EUC-H" to "90ms-RKSJ-H".
<?php
$fp = fopen( "test.pdf", "w");
$pdf = PDF_open($fp);
PDF_begin_page($pdf, 400, 200);
pdf_set_text_rendering($pdf, 2);
$str = "??日本語です。";
echo mb_detect_encoding($str);
pdf_set_font($pdf, "HeiseiMin-W3", 30, "90ms-RKSJ-H");
PDF_show_xy($pdf, $str, 10,150);
pdf_set_font($pdf, "HeiseiKakuGo-W5", 30, "90ms-RKSJ-H");
PDF_show_xy($pdf, "??日本語です。", 10,100);
PDF_end_page($pdf);
PDF_close($pdf);
fclose($fp);
?>
<a href="test.pdf">finished</a>
Thanks
-- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Jean-Christian Imbeault: "Re: [PHP-I18N] trimming spaces from multibyte strings"
- Previous message: Moriyoshi Koizumi: "Re: [PHP-I18N] trimming spaces from multibyte strings"
- In reply to: Claire Hector: "Re: [PHP-I18N] PDF document with Japanese characters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

