Splitting a pdf file into seperate pdfs in linux

The pdftk tool can be used to split a given pdf document into separate individual pdf pages. The option to be used with pdftk to achieve this is “burst” i.e.

$ pdftk burst”

The pages are created with the names as pg_0001.pdf for first page,pg_0002.pdf for the second page etc. Example : Let us say we have a pdf file named “temp.pdf” with 10 pages.

$ pdftk temp.pdf burst $ ls doc_data.txt pg_0003.pdf pg_0005.pdf pg_0007.pdf pg_0009.pdf temp.pdf pg_0001.pdf pg_0004.pdf pg_0006.pdf pg_0008.pdf pg_0010.pdf

Thus we can see the temp.pdf has been split into 10 pdf files. The file doc_data.txt has the information of the document.


Tags: , ,
Copyright 2017. All rights reserved.

Posted January 8, 2013 by Tux Think in category "Linux

Splitting a pdf file into seperate pdfs in linux

The pdftk tool can be used to split a given pdf document into separate individual pdf pages. The option to be used with pdftk to achieve this is “burst” i.e.

$ pdftk burst”

The pages are created with the names as pg_0001.pdf for first page,pg_0002.pdf for the second page etc. Example : Let us say we have a pdf file named “temp.pdf” with 10 pages.

$ pdftk temp.pdf burst $ ls doc_data.txt pg_0003.pdf pg_0005.pdf pg_0007.pdf pg_0009.pdf temp.pdf pg_0001.pdf pg_0004.pdf pg_0006.pdf pg_0008.pdf pg_0010.pdf

Thus we can see the temp.pdf has been split into 10 pdf files. The file doc_data.txt has the information of the document.


Tags: , ,
Copyright 2017. All rights reserved.

Posted by Tux Think in category "Linux