有人可以告诉我如何使用 PDFtk 删除 PDF 文件的最后一页吗?
这将创建outfile.pdf
除最后一页外的所有内容infile.pdf
pdftk infile.pdf cat 1-r2 output outfile.pdf
参数说明
-
infile.pdf
是原始的pdf文件
-
cat https://www.pdflabs.com/docs/pdftk-man-page/#dest-op-cat是操作
-
1-r2
is the page range
-
You can reference page numbers in reverse order by prefixing them with the letter r. For example, page r1 is the last page of the document, r2 is the next-to-last page of the document, and rend is the first page of the document. You can use this prefix in ranges, too, for example r3-r1 is the last three pages of a PDF.
-
output
将其输出到特定文件
-
output.pdf
是输出的pdf文件
更多示例如下:https://www.pdflabs.com/docs/pdftk-cli-examples/ https://www.pdflabs.com/docs/pdftk-cli-examples/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)