我正在尝试对 pdf 文件添加限制,但不需要用户密码。由于某种原因,我没能做到这一点。
qpdf.exe --encrypt 40 -modify=y -extract=y -annotate=y -- in.pdf out.pdf
帮助说明:
Either or both of the user password and the owner password may be empty strings.
我应该如何指定空密码字符串?
最佳答案
您应该使用引号将空字符串指定为密码:
qpdf.exe --encrypt "" "" 40 -modify=y -extract=y -annotate=y -- in.pdf out.pdf
关于encryption - Qpdf 没有密码无法加密,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42785645/