User Tools

Site Tools



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

Link to this comparison view

wiki:pdftkbash [2017/12/05 22:53]
wiki:pdftkbash [2020/07/17 06:39] (current)
Line 1: Line 1:
 +====== Manipulate pdf documents using bash scripts ======
 +[[http://​​tools/​pdftk-the-pdf-toolkit|PDF toolkit]] is an interesting tool for doing everyday things with PDF documents.\\
 +[[http://​​docs/​pdftk-man-page/​|Here]] you find the pdftk **Synopsis** and manual page.\\
 +==== Merge pdf ====
 +We have several images in pdf format and we need to merge them in one single pdf file.\\
 +<note important>​ please run first the [[imagemagikbash|image magick script]] </​note>​ \\
 +Change directory and look at your pdf images: \\
 +<code bash>
 +cd ~/​ost4sem/​exercise/​basic_adv_grass/​tmp_image
 +pdftk *.pdf cat output combined.pdf
 +==== Convert color pdf document into a black and white ====
 +<code bash>
 +convert -density 600 -colorspace Gray     ​INPUT_color_document.pdf ​     OUTPUT_black_and_white_document.pdf