dongzun9958 2012-06-15 06:45
浏览 123
已采纳

如何使用xpdf解码pdf中的一些特殊字体?

I am using xpdf to convert pdf files to text. Below is the code used for it.

$content = shell_exec('pdftotext '.$filename.' -');

Xpdf is not able to convert few special fonts in pdf to text. for example: bizarre font cannot be converted to text using xpdf.

Are they any alternative software which can convert all kind of fonts in pdf to text in PHP.

  • 写回答

1条回答 默认 最新

  • dongqiangse6623 2012-07-29 16:37
    关注

    Maybe you should try the Poppler version of pdftotext if the XPDF version fails for your files....

    However, take note of this fact, please: Not even Acrobat Reader can extract all cases of well rendered text on a PDF page to a text file...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?