如何使用qpdf解密多个pdf文件? [英] How to decrypt multiple pdf files using qpdf?
问题描述
我有n个被安全保护的pdf文件(即没有密码保护,但由所有者保护).我可以使用 _ 一次解密单个pdf Windows中Cmd Promt的"qpdf --decrypt Input.pdf Output.pdf". 您能帮助我使用批处理文件或从cmd提示符对多个pdf进行相同的操作吗?
I have some n number of pdf files which are SECURED( i.e not password secured, but owner secured). I was able to decrypt single pdf at a time using _ "qpdf --decrypt Input.pdf Output.pdf" from Cmd Promt in Windows. can you help me to do the same with multiple pdf's using batch file or from cmd prompt.
推荐答案
如果只想从外壳程序(cmd.exe)运行命令,则可以在包含PDF的目录中执行以下操作:
If you just want to run the command from the shell (cmd.exe), you can do something like this from the directory containing the PDFs:
for %a in ("*.pdf") do "c:\Programs\qpdf\bin\qpdf.exe" --decrypt "%a" "%~dpna.decrypted.pdf"
这篇关于如何使用qpdf解密多个pdf文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!