Question about php with pdflib
| From: | ����� | Date: | Thu, 01 Jun 2000 01:17:43 +0000 |
| Subject: | Question about php with pdflib | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-765@lists.php.net to get a copy of this message | ||
Hello I'm Lee Hyung Jun in Korea.
I'm using PHP4.0 with PDFlib3.0 in Linux.
I succeeded to make pdf document by using pdflib
function that supported by PHP on web.
But there is a problem.
There is no problem to show Engligh through pdf document.
But to show Korean is not easy.
In fonts directory all font file exist as *.afm.
So I searched web and found serval korean fonts
but in manual only HYGothic-Medium and
HYsMyeongJo-Medium
are possible.
But I cant find that afm file(HYGothic-Medium and
HYsMyeongJo-Medium).(does it exist? ^^;)
What does it need to use korean font,HYGoThic-Medium
and HYSMyeongJo-Medium? and What Configuration is
needed?
Pleas Help Me.
below is my test source file.
==================================================
<?php
$fp = fopen("test.pdf", "w");
$pdf = PDF_open($fp);
pdf_set_info_author($pdf, "temp_author");
PDF_set_info_title($pdf, "temp_title");
pdf_set_info_creator($pdf, "temp_creator");
pdf_set_info_subject($pdf, "temp_subject");
PDF_begin_page($pdf, 595, 842);
PDF_add_outline($pdf, "Page 1");
PDF_set_font($pdf, "Times-Italic", 30,"winansi");
file://<=== I want to show korean font not broken.
PDF_set_text_rendering($pdf, 1);
PDF_show_xy($pdf, "한글은 깨어지려나 ", 50, 750);
PDF_show_xy($pdf, "English has no problem",70,820);
PDF_moveto($pdf, 50, 740);
PDF_lineto($pdf, 330, 740);
PDF_stroke($pdf);
PDF_end_page($pdf);
PDF_close($pdf);
fclose($fp);
echo "<A HREF=test.pdf>finished</A>";
?>
==================================================
==================================================
No. 1 우리 인터넷, Daum
평생 쓰는 무료 E-mail 주소 한메일넷
지구촌 한글 검색서비스 Daum FIREBALL
http://www.daum.net