explode and merge pdf files in linux

If you are interested in merging multiple pdf files together, extracting single pdf pages from a larger document or reorder a pages, “pdftk” makes the life pretty easy!

Simply install it (“sudo apt-get install pdftk” in ubuntu/debian based distros) and then use it as follows:

to explode one big pdf into unitary pages:

pdftk <path_to_pdf_file> burst

This will generate pg_00n.pdf single files in current directory from which command line is being executed.

to merge multiple pdf files together: put them all into a given folder and run:

pdftk <path_to_pdfs>/*.pdf cat output output.pdf


Post a Comment

Your email is never published nor shared. You're allow to say what you want...

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/remydamo/websites/qc4blog/www/wp-content/plugins/sweetcaptcha-revolutionary-free-captcha-service/library/sweetcaptcha.php on line 81

Warning: fsockopen() [function.fsockopen]: unable to connect to www.sweetcaptcha.com:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/remydamo/websites/qc4blog/www/wp-content/plugins/sweetcaptcha-revolutionary-free-captcha-service/library/sweetcaptcha.php on line 81