从pdf文件中选择部分页面,创建一个新文件

pdftk 是PDF工具包
input.pdf 是输入文件。
cat 2-4 7 9-10 连接(组合)input.pdf的第2,3,4,7,9,10页。
output output.pdf 生成的pdf文件包含上述页面。
.

0

linux命令:pdftk input.pdf cat 2-4 7 9-10 output output.pdf output.pdf output 9-10 7 2-4 cat input.pdf pdftk pdftk input.pdf cat 2-4 7 9-10 output output.pdfrootopen.com
linux命令:pdftk input.pdf cat 2-4 7 9-10 output output.pdf output.pdf output 9-10 7 2-4 cat input.pdf pdftk pdftk input.pdf cat 2-4 7 9-10 output output.pdfrootopen.com
jemp 2019-01-06 22:14:27
输出
替代方案1 从pdf文件中选择部分页面,创建一个新文件

ps2pdf 是一个Ghostscript附带的脚本 - 尽管名称,它可以接受PDF文件作为输入,而不仅仅是postscript文件.

linux命令:ps2pdf -dFirstPage=3 -dLastPage=10 input.pdf output.pdf output.pdf input.pdf -dLastPage=10 -dFirstPage=3 ps2pdf ps2pdf -dFirstPage=3 -dLastPage=10 input.pdf output.pdfrootopen.com
linux命令:ps2pdf -dFirstPage=3 -dLastPage=10 input.pdf output.pdf output.pdf input.pdf -dLastPage=10 -dFirstPage=3 ps2pdf ps2pdf -dFirstPage=3 -dLastPage=10 input.pdf output.pdfrootopen.com
.
输出

评论

相关推荐

linux命令:pdftk $* cat output $merged.pdf $merged.pdf output cat $* pdftk pdftk $* cat output $merged.pdfrootopen.com
linux命令:pdftk $* cat output $merged.pdf $merged.pdf output cat $* pdftk pdftk $* cat output $merged.pdfrootopen.com
.

需要pdftk软件包它会将您的pdf文件中的每个页面分割成一个新的pdf文件并报告有关doc_data.txt的信息

linux命令:pdftk mydoc.pdf burst burst mydoc.pdf pdftk pdftk mydoc.pdf burstrootopen.com
linux命令:pdftk mydoc.pdf burst burst mydoc.pdf pdftk pdftk mydoc.pdf burstrootopen.com
.

需要pdftk包

linux命令:pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf 123.pdf output cat 3.pdf 2.pdf 1.pdf pdftk pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdfrootopen.com
linux命令:pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf 123.pdf output cat 3.pdf 2.pdf 1.pdf pdftk pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdfrootopen.com
.

简单的替代之前提交的一个

linux命令:pdftk in.pdf burst burst in.pdf pdftk pdftk in.pdf burstrootopen.com
linux命令:pdftk in.pdf burst burst in.pdf pdftk pdftk in.pdf burstrootopen.com
.

该命令显示了pdftk工具的实际功能,您可以使用多个PDF文件基本上完成所需的任何操作。在命令中,将根据章节,标题和封面创建一本书。

linux命令:pdftk A=chapters.pdf B=headings.pdf C=covers.pdf cat C1 B1 A1-7 B2 A8-10 C2 output book.pdf book.pdf output C2 A8-10 B2 A1-7 B1 C1 cat C=covers.pdf B=headings.pdf A=chapters.pdf pdftk pdftk A=chapters.pdf B=headings.pdf C=covers.pdf cat C1 B1 A1-7 B2 A8-10 C2 output book.pdfrootopen.com
linux命令:pdftk A=chapters.pdf B=headings.pdf C=covers.pdf cat C1 B1 A1-7 B2 A8-10 C2 output book.pdf book.pdf output C2 A8-10 B2 A1-7 B1 C1 cat C=covers.pdf B=headings.pdf A=chapters.pdf pdftk pdftk A=chapters.pdf B=headings.pdf C=covers.pdf cat C1 B1 A1-7 B2 A8-10 C2 output book.pdfrootopen.com
.

linux命令:pdftk first.pdf second.pdf cat output output.pdf output.pdf output cat second.pdf first.pdf pdftk pdftk first.pdf second.pdf cat output output.pdfrootopen.com
linux命令:pdftk first.pdf second.pdf cat output output.pdf output.pdf output cat second.pdf first.pdf pdftk pdftk first.pdf second.pdf cat output output.pdfrootopen.com
.

这可以从pdftk docshttp://www.pdflabs.com/docs/pdftk-man-page/http://www.pdflabs.com/docs/pdftk-cli-examples/中获得,但命令示例不是简单。

linux命令:pdftk pdfname.pdf cat 1E output outputname.pdf outputname.pdf output 1E cat pdfname.pdf pdftk pdftk pdfname.pdf cat 1E output outputname.pdfrootopen.com
linux命令:pdftk pdfname.pdf cat 1E output outputname.pdf outputname.pdf output 1E cat pdfname.pdf pdftk pdftk pdfname.pdf cat 1E output outputname.pdfrootopen.com
.

linux命令:pdftk input.pdf cat 1-endE output output.pdf output.pdf output 1-endE cat input.pdf pdftk pdftk input.pdf cat 1-endE output output.pdfrootopen.com
linux命令:pdftk input.pdf cat 1-endE output output.pdf output.pdf output 1-endE cat input.pdf pdftk pdftk input.pdf cat 1-endE output output.pdfrootopen.com
.

更多pdftk示例:http://www.pdflabs.com/docs/pdftk-cli-examples/

linux命令:pdftk in.pdf cat 1S output out.pdf out.pdf output 1S cat in.pdf pdftk pdftk in.pdf cat 1S output out.pdfrootopen.com
linux命令:pdftk in.pdf cat 1S output out.pdf out.pdf output 1S cat in.pdf pdftk pdftk in.pdf cat 1S output out.pdfrootopen.com
.

加入来自Simplex文档供稿扫描仪的两个pdf文档。需要pdftk> 1.44 w / shuffle。

linux命令:pdftk A=odd.pdf B=even.pdf shuffle A1-end Bend-1S output duplex.pdf duplex.pdf output Bend-1S A1-end shuffle B=even.pdf A=odd.pdf pdftk pdftk A=odd.pdf B=even.pdf shuffle A1-end Bend-1S output duplex.pdfrootopen.com
linux命令:pdftk A=odd.pdf B=even.pdf shuffle A1-end Bend-1S output duplex.pdf duplex.pdf output Bend-1S A1-end shuffle B=even.pdf A=odd.pdf pdftk pdftk A=odd.pdf B=even.pdf shuffle A1-end Bend-1S output duplex.pdfrootopen.com
.

linux命令:pdftk inp1.pdf inp2.pdf inp3.pdf cat output out.pdf out.pdf output cat inp3.pdf inp2.pdf inp1.pdf pdftk pdftk inp1.pdf inp2.pdf inp3.pdf cat output out.pdfrootopen.com
linux命令:pdftk inp1.pdf inp2.pdf inp3.pdf cat output out.pdf out.pdf output cat inp3.pdf inp2.pdf inp1.pdf pdftk pdftk inp1.pdf inp2.pdf inp3.pdf cat output out.pdfrootopen.com
.

linux命令:pdftk input1.pdf input2.pdf cat output output.pdf output.pdf output cat input2.pdf input1.pdf pdftk pdftk input1.pdf input2.pdf cat output output.pdfrootopen.com
linux命令:pdftk input1.pdf input2.pdf cat output output.pdf output.pdf output cat input2.pdf input1.pdf pdftk pdftk input1.pdf input2.pdf cat output output.pdfrootopen.com
.

pdfcount:获取PDF文件中的页数

linux命令:pdftk file.pdf dump_data output | grep -i Num Num -i grep | output dump_data file.pdf pdftk pdftk file.pdf dump_data output | grep -i Numrootopen.com
linux命令:pdftk file.pdf dump_data output | grep -i Num Num -i grep | output dump_data file.pdf pdftk pdftk file.pdf dump_data output | grep -i Numrootopen.com
.

pdfappend:追加多个pdf文件

linux命令:pdftk 1.pdf 2.pdf cat output 12.pdf 12.pdf output cat 2.pdf 1.pdf pdftk pdftk 1.pdf 2.pdf cat output 12.pdfrootopen.com
linux命令:pdftk 1.pdf 2.pdf cat output 12.pdf 12.pdf output cat 2.pdf 1.pdf pdftk pdftk 1.pdf 2.pdf cat output 12.pdfrootopen.com
.

pdftk附加句柄

linux命令:pdftk A=1.pdf B=2.pdf C=3.pdf cat C A output CA.pdf CA.pdf output A C cat C=3.pdf B=2.pdf A=1.pdf pdftk pdftk A=1.pdf B=2.pdf C=3.pdf cat C A output CA.pdfrootopen.com
linux命令:pdftk A=1.pdf B=2.pdf C=3.pdf cat C A output CA.pdf CA.pdf output A C cat C=3.pdf B=2.pdf A=1.pdf pdftk pdftk A=1.pdf B=2.pdf C=3.pdf cat C A output CA.pdfrootopen.com
.

将pdf从pg_0001.pdf合并到pg_0009.pdf到MyFile.pdf中

linux命令:pdftk pg_000{1..9}.pdf cat output MyFile.pdf MyFile.pdf output cat pg_000{1..9}.pdf pdftk pdftk pg_000{1..9}.pdf cat output MyFile.pdfrootopen.com
linux命令:pdftk pg_000{1..9}.pdf cat output MyFile.pdf MyFile.pdf output cat pg_000{1..9}.pdf pdftk pdftk pg_000{1..9}.pdf cat output MyFile.pdfrootopen.com
.

按字母顺序合并多个PDF

linux命令:pdftk *.pdf cat output merged.pdf merged.pdf output cat *.pdf pdftk pdftk *.pdf cat output merged.pdfrootopen.com
linux命令:pdftk *.pdf cat output merged.pdf merged.pdf output cat *.pdf pdftk pdftk *.pdf cat output merged.pdfrootopen.com
.

一些PDF查看器在打印时不能正确管理表单字段。 它们不是透明的,而是黑色的。

linux命令:pdftk fill_me_in.pdf output no_thanks.pdf flatten flatten no_thanks.pdf output fill_me_in.pdf pdftk pdftk fill_me_in.pdf output no_thanks.pdf flattenrootopen.com
linux命令:pdftk fill_me_in.pdf output no_thanks.pdf flatten flatten no_thanks.pdf output fill_me_in.pdf pdftk pdftk fill_me_in.pdf output no_thanks.pdf flattenrootopen.com
.

linux命令:pdftk input.pdf output output.pdf user_pw YOURPASSWORD-HERE YOURPASSWORD-HERE user_pw output.pdf output input.pdf pdftk pdftk input.pdf output output.pdf user_pw YOURPASSWORD-HERErootopen.com
linux命令:pdftk input.pdf output output.pdf user_pw YOURPASSWORD-HERE YOURPASSWORD-HERE user_pw output.pdf output input.pdf pdftk pdftk input.pdf output output.pdf user_pw YOURPASSWORD-HERErootopen.com
.

顺时针旋转所有PDF页面:

linux命令:pdftk in.pdf cat 1-endeast output out.pdf out.pdf output 1-endeast cat in.pdf pdftk pdftk in.pdf cat 1-endeast output out.pdfrootopen.com
linux命令:pdftk in.pdf cat 1-endeast output out.pdf out.pdf output 1-endeast cat in.pdf pdftk pdftk in.pdf cat 1-endeast output out.pdfrootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令