Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在多个文件或包含 pdf 文件的文件夹上使用 pdf2htmlEX?
我能够很好地转换单个文件,但我显然不想为 100 个文件运行 100 次命令。
我在文档中找不到任何内容,并且“*.pdf”之类的内容不起作用。
谢谢!
一种选择是使用脚本来执行此操作:
创建一个脚本并放入这个内容:(对于这个例子,我们称之为mypdf2html.sh)
mypdf2html.sh
把这个内容放在里面(注意它删除了之前的文件夹)
rm -rf html mkdir html for (( i=1; i<118; i++ )); do infile="apcPage"$i pdf2htmlEX --zoom 1.3 $infile".pdf" ./html/$infile".html" done
运行脚本sh mypdf2html.sh
sh mypdf2html.sh