User Tools

Site Tools


wiki:pdftkbash

Manipulate pdf documents using bash scripts

PDF toolkit is an interesting tool for doing everyday things with PDF documents.
Here you find the pdftk Synopsis and manual page.
Example

Merge pdf

We have several images in pdf format and we need to merge them in one single pdf file.

please run first the image magick script


Change directory and look at your pdf images:

cd ~/ost4sem/exercise/basic_adv_grass/tmp_image
pdftk *.pdf cat output combined.pdf

Convert color pdf document into a black and white

convert -density 600 -colorspace Gray     INPUT_color_document.pdf      OUTPUT_black_and_white_document.pdf
wiki/pdftkbash.txt · Last modified: 2017/12/05 22:53 (external edit)