? $pdf = pdf_new ();
pdf_open_file($pdf, "./test.pdf" ); pdf_set_info($pdf, "Creator", iconv( "BIG5","UTF-16","Little Penguin" ));
pdf_begin_page($pdf, 595, 842 ); ## bookmark to use UTF-16 Unicode oh $ Parent = pdf_add_bookmark ( ,  iconv ( "BIG5" "UTF-16" "Traditional Chinese" )); pdf_add_bookmark($pdf, Iconv("BIG5"), "UTF-16","Font One"),$Parent ); $font = pdf_findfont($pdf, " Mhei-medium ", " eten-b5-h", 0 ); pdf_setfont($pdf, $font ); pdf_show_xy($pdf, "hainan bo Lang dao lang bo South Sea", 50 , 750 ); pdf_end_page($pdf );
pdf_begin_page($pdf, 595, 842 ); pdf_add_bookmark($pdf, Iconv("BIG5 ","UTF-16","font One "),$Parent ); $font = pdf_findfont($pdf, "Msung-light", "Eten-b5-h", 0 ); pdf_setfont($pdf, $font ); pdf_show_xy($pdf, "Bai Sha Ming Moonlight Moon Bright Sand white", 750 ); pdf_end_page($pdf );
pdf_begin_page($pdf, 595, 842 = pdf_add_ Bookmark $pdf , iconv "BIG5" Font color= "#007700", "UTF-16" "Simplified Chinese" )); pdf_add_bookmark($pdf, Iconv("BIG5"), "UTF-16","Font One"),$Parent ); $font = pdf_findfont($pdf, " Stsong-light ", " gbk-euc-h", 0 ); pdf_setfont($pdf, $font ); pdf_show_xy($pdf, "奻 paint 赻 understand 赻 paint 奻", 50 , 750 ); pdf_show_xy($pdf, "笢 刓 Sweet Ling hao 刓 笢", 650 ); pdf_end_page($pdf );
/* Part of Chinese encoding {"Gb-euc-h", Cc_simplified_chinese}, {"Gb-euc-v", Cc_simplified_chinese}, {"Gbpc-euc-h", Cc_simplified_chinese}, {"Gbpc-euc-v", Cc_simplified_chinese}, {"Gbk-euc-h", Cc_simplified_chinese}, {"Gbk-euc-v", Cc_simplified_chinese}, {"Unigb-ucs2-h", Cc_simplified_chinese}, {"Unigb-ucs2-v", Cc_simplified_chinese},
{"B5pc-h", Cc_traditional_chinese}, {"B5pc-v", Cc_traditional_chinese}, {"Eten-b5-h", Cc_traditional_chinese}, {"Eten-b5-v", Cc_traditional_chinese}, {"Etenms-b5-h", Cc_traditional_chinese}, {"Etenms-b5-v", Cc_traditional_chinese}, {"Cns-euc-h", Cc_traditional_chinese}, {"Cns-euc-v", Cc_traditional_chinese}, {"Unicns-ucs2-h", Cc_traditional_chinese}, {"Unicns-ucs2-v", Cc_traditional_chinese}, Part of the Chinese character type
"Mhei-medium", "Msung-light", "Stsong-light",
*/
Pdf_close($pdf); pdf_delete($pdf ); ?>
|