问题
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