Re: PDF document with Japanese characters

Durgaprasada Kalluraya <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.