This shows you the differences between two versions of the page.
— |
cs:pdftk [2020/11/26 23:18] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Pdftk ====== | ||
+ | '' | ||
+ | |||
+ | ===== Merge pdf files ===== | ||
+ | To merge two or more pdf files ('' | ||
+ | |||
+ | <code bash> | ||
+ | pdftk file1.pdf file2.pdf file3.pdf cat output merged.pdf | ||
+ | </ | ||
+ | |||
+ | the file '' | ||
+ | |||
+ | ===== Extract a range of pages from a pdf ===== | ||
+ | Extract pages from 1 to 10 and from 12 to the end, and save the extracted pages on the file '' | ||
+ | <code bash> | ||
+ | pdftk input.pdf cat 1-10 12-end output out.pdf | ||
+ | </ | ||
+ | |||
+ | ===== Rotate all the pages of a pdf of 90 degrees clockwise ===== | ||
+ | <code bash> | ||
+ | pdftk input.pdf cat 1-endeast output out.pdf | ||
+ | </ | ||
+ | |||
+ | ===== Install pdftk in Ubuntu 18.04 or newer ===== | ||
+ | To install '' | ||
+ | <code bash> | ||
+ | sudo snap install pdftk | ||
+ | </ | ||