简体   繁体   中英

Flatten a PDF with PHP (PDFTK)

I am using PDFTK to flatten a PDF with PHP. Problem is that all special characters (É,è,à, etc.) disappear once flattened. Tried UTF-8, unicode chars, htmlentities, etc., it's all the same as a result.

Therefore, I would like to solve PDFTK issue OR use another script to achieve this task.

It appears that the font set for all fields was causing the problem. If you run into that kind of problem and you're sure about your encoding, try another font, the one you use may be corrupted like in my case.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM