使用的指令是:
pdftotext -enc UTF-8 test.pdf - 2>/dev/null
但输出为空,使用Adobe Reader打开可以正常保存为txt文件,就是使用pdftotext不行。
用windows版的pdftotext也不行。PDF的编码是Identity-H,请问有其它解决方案吗?
以下是转换失败的PDF:
http://pan.baidu.com/s/1eQIFZO2
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
人生最曼妙的风景,竟是内心的淡定与从容!