User Tools

Site Tools


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.

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: 2020/07/17 06:39 (external edit)