我是使用mutool
命令提取pdf中的文档,但是运行(shell-command-to-string (format "mutool draw -Ftext %s" file-1))
成功了,而运行(process-lines "mutool" "draw" "-Ftext" file-1)
却失败了,mutool
退出码为1,请问是什么原因?
看看是不是环境变量引起的?
第一个是用shell启动进程, 第二个函数是 call-process 启动的。
file-1
定义的文件路径是以~
起始的,似乎process-lines
并不能将~
解析为HOME路径。将~
改为HOME路径就好了。
此话题已在最后回复的 730 天后被自动关闭。不再允许新回复。