如何在PHP中生成多语言内容Pdf [英] How to generate multilingual content Pdf in PHP

查看:109
本文介绍了如何在PHP中生成多语言内容Pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TCPDF在PHP中生成多语言内容PDF.我正在使用TCPDF并使用字体'cid0jp',但它迫使用户下载Adobe Reader的语言包.

I am using TCPDF to generate multilingual content PDF in PHP. I am using TCPDF and using font 'cid0jp' but It is forcing user to download language pack for adobe reader.

是否可以在不强制用户下载任何语言包的情况下生成多语言pdf?

Is there any way to generate multilingual pdf without enforcing user to download any langauge pack?

推荐答案

是的,有一种方法.我只是有同样的问题.为什么Adobe Reader要求我不知道的语言包.

Yes, there's a way. I just had the same issue. Why Adobe Reader is asking for the language pack i don't know.

但是我知道创建多语言PDF的最好方法是使用Windows附带的Arial Unicode MS-字体.根据维基百科,这是字符最多的字体! 但是没有粗体或斜体.您可以从 http://www.linotype.com购买Arial Unicode加粗字体/en/817674/ArialUnicode-family.html# .

But i know that the best way to create multilingual PDFs is to use the Arial Unicode MS-Font which is included in windows. That's the font with the most characters according to wikipedia!! But there's no Bold or Italics. You can buy a Arial Unicode Bold from http://www.linotype.com/en/817674/ArialUnicode-family.html#.

我将Arial MS Unicode字体与中文,日文和cyrilic一起使用.对于西方语言,我使用普通的Arial,所以我使用斜体和粗体. 另一种可能性是为每种语言使用为此语言制作的自己的字体.

I use the Arial MS Unicode-Font with chinese, japanese, cyrilic. For western languages i use the normal Arial so i have italics and bold. An other possibility is to use for each language a own font which is made for this language.

要使Arial MS Unicode与tcpdf一起使用,请遵循此问题的答案上的步骤:

To make the Arial MS Unicode to work with tcpdf follow the steps on the answer of this Question: Creating PDFs using TCPDF that supports all languages especially CJK

我希望我能帮忙...

I hope i could help...

这篇关于如何在PHP中生成多语言内容Pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆