Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese Messy Code #1305

Open
bowendai opened this issue Mar 7, 2018 · 3 comments
Open

Chinese Messy Code #1305

bowendai opened this issue Mar 7, 2018 · 3 comments

Comments

@bowendai
Copy link

bowendai commented Mar 7, 2018

My document content is
image
when I use the following code:
$phpWord = \PhpOffice\PhpWord\IOFactory::load('test.docx'); $phpWord->save('test.pdf', 'PDF');

The pdf content is
image
It is Chinese Messy Code. How to solve it?

@troosan
Copy link
Contributor

troosan commented Mar 7, 2018

I guess that's because the font used to create the PDF does not support UTF8.
Same issue as #1296

@jacklove2run
Copy link

Hey man, did u solved this problem?

@davisphper
Copy link

Have you found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants