pdf2htmlEX无法打开或读取文件

我安装了docker并通过它运行pdf2htmlEX

alias pdf2htmlEX="docker run -ti --rm -v ~/pdf:/pdf bwits/pdf2htmlex pdf2htmlEX" pdf2htmlEX -h pdf2htmlEX --zoom 1.3 test.pdf 

这是我的path和pdf内容:

 ~/Desktop/pdf$ ls test.pdf testpdf.pdf 

运行以下命令时:

 df2htmlEX --zoom 1.3 test.pdf df2htmlEX test.pdf df2htmlEX pdf/test.pdf df2htmlEX ~pdf/test.pdf 

和test.pdf之前的完整path的其他组合,我继续无法读取文件错误。

 I/O Error: Couldn't open file 'test.pdf': No such file or directory. Error: Cannot read the file 

我不确定权限是否是原因,但在检查用户权限时,它已经读取和写入:

 -rw-r--r--@ 1 test.pdf -rw-r--r--@ 1 testpdf.pdf 

任何想法为什么它没有find或不能读取在那里的PDF文件? 我正试图将其转换为.html

主机path应该像这样定向。

 docker run -ti --rm -v /Users/<path>:/pdf bwits/pdf2htmlex pdf2htmlEX test.pdf 

请参考https://docs.docker.com/engine/tutorials/dockervolumes/

不知道是否有其他人遇到这个问题,但文件不清楚给我。

 brew install pdf2htmlex 

然后重新启动你的terminal为我做了诡计。 我不确定这是否是需要与Docker旋转pdf2htmlex或不,但它为我工作。