generating PDF using TCPDF - cannot extract embedded font

时光总嘲笑我的痴心妄想 提交于 2019-12-10 19:44:12

问题


I'm using TCPDF for generating dynamic PDFs. It works fine but since I move my generator to a new server I have a problem.

I'm getting a error when I open the pdf:

Cannot extract the embedded font 'AAAAAC+FreeSerif'. Some characters may not display or print correctly.

It displays symbols instead of text. On the old server the files are successfully generated but on the new server all I see are symbols. Anyone has any idea why this would happen? (the files on both servers are the same!).


回答1:


Figured it out... the problem was that the servers php.ini had:

set_magic_quotes_runtime on

Which corrupted the binary data. Turning it off solved the problem.



来源:https://stackoverflow.com/questions/9315298/generating-pdf-using-tcpdf-cannot-extract-embedded-font

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!