User Tools

Site Tools


cs:pdftk
Return to Home page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cs:pdftk [2020/11/26 23:18] (current)
Line 1: Line 1:
 +====== Pdftk ======
 +''pdftk'' is a useful tool for manipulating pdf files.
 +
 +===== Merge pdf files =====
 +To merge two or more pdf files (''file1.pdf'', ''file2.pdf'',...) use the following command:
 +
 +<code bash>
 +pdftk file1.pdf file2.pdf file3.pdf cat output merged.pdf
 +</code>
 +
 +the file ''merged.pdf'' is the concatenation of ''file1.pdf'', ''file2.pdf'' and ''file3.pdf''
 +
 +===== 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 ''out.pdf''. Practically, this command removes page number 11.
 +<code bash>
 +pdftk input.pdf cat 1-10 12-end output out.pdf
 +</code>
 +
 +===== Rotate all the pages of a pdf of 90 degrees clockwise =====
 +<code bash>
 +pdftk input.pdf cat 1-endeast output out.pdf
 +</code>
 +
 +===== Install pdftk in Ubuntu 18.04 or newer =====
 +To install ''pdftk'' in Ubuntu 18.04 or newer you have to type the following command:
 +<code bash>
 +sudo snap install pdftk
 +</code>
  

If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/cs/pdftk?do=diff
/web/htdocs/www.skenz.it/home/data/pages/cs/pdftk.txt ยท Last modified: 2020/11/26 23:18 (external edit)