我正在尝试使用 pdftk 为 PDF 添加背景:
$ pdftk ./sources/Skills.pdf background ./Background.pdf output test.pdf verbose
Command Line Data is valid.
Input PDF Filenames & Passwords in Order
( <filename>[, <password>] )
./sources/Skills.pdf
The operation to be performed:
filter - Apply 'filters' to a single, input PDF based on output args.
(When the operation is omitted, this is the default.)
The output file will be named:
test.pdf
Output PDF encryption settings:
Output PDF will not be encrypted.
No compression or uncompression being performed on output.
Creating Output ...
Run Code Online (Sandbox Code Playgroud)
然后这个过程就卡住了。它创建了输出文件,但没有任何内容。
$ ls -l test.pdf
-rw-r--r--@ 1 corti macports 0 Aug 9 14:27 test.pdf
Run Code Online (Sandbox Code Playgroud)
我正在使用 pdftk 2.02
pdftk 2.02 用于处理 PDF 文档的便捷工具 版权所有 (c) 2003-13 Steward and Lee, LLC - 请访问:www.pdftk.com 这是免费软件;查看复制条件的源代码。没有任何保证,即使是针对特定目的的适销性或适用性。
知道可能是什么问题吗?是否有其他(免费)替代方法可以将 PDF 添加为第二个 PDF 的背景?
小智 7
升级到 OS X 10.11 El Capitan 后,我遇到了同样的问题。
pdftk 的创建者 Sid Stewart 为不同的堆栈交换问题提供的解决方案对我有用。
问题:https : //stackoverflow.com/q/32505951
答案:https : //stackoverflow.com/a/33248310