| Zolved community solution |
|
How to combine and separate pdf files on Ubuntu
Merging and pulling apart pdf files is easy on Ubuntu
Follow these steps to combine or separate pdf files on Ubuntu.
-
Go to Applications > Accessories > Terminal to open the terminal window.

-
Install pdftk by typing the following commands at the terminal.
sudo aptitude install pdftk

-
Enter the following commands at the terminal.
cd
mkdir bin
cd bin

-
Edit the pdftk_burst by entering the following command at the terminal.
gedit pdftk_burst

-
Add the following lines as shown.
#! /bin/bash
cd ${1%/*}
/usr/bin/pdftk "$1" burst
rm doc_data.txt

Save and close the file. Edit pdftk_cat by entering the following command at the terminal.
-
gedit pdftk_cat

-
Add the following lines to pdftk_cat
#!/bin/bash
cd ${1%/*}
outfile="00out.pdf"
if [ -f $outfile ] ; then
rm -f $outfile
fi
/usr/bin/pdftk *.pdf cat output $outfile

Save and close pdftk_cat
- Change the permissions on the file.
chmod u+x pdftk_burst pdftk_cat

-
Adding custom command options.
Select any pdf file and right click on it and go to properties. Go to Open With tab, and click on Add.
.jpg)
-
Click on Use a custom command as shown.

-
Click on browse and select the pdftk_burst file.

-
Click on Add

Repeat the same steps for pdftk_cat also.
.jpg)
After pdftk_burst and pdftk_cat are added, click on Close.
.jpg)
-
Now when you right click on any pdf file, you will see two new options.
Open With > pdftk_burst which will convert a 30 page pdf file into 30 different files each containing one page.
.jpg)
-
Now when you right click on any pdf file, you will see two new options.
Open With > pdftk_cat will combine 30 different files in that folder and joins them and creates one single file called 00out.pdf file.
.jpg)
|
Related articles
How to login automatically in Ubuntu
How to play popular multimedia formats in Ubuntu?
Top tips and tricks for Ubuntu users
Using Add/Remove programs in Ubuntu
How to add an additional Super User DO(SUDO) in Ubuntu
Ubuntu Tips and Tricks
How to Install Wine in Ubuntu
How to change the root password on Ubuntu
Fix your right Alt key in Ubuntu
How to fix Display problems in Ubuntu
How to customize the Taskbar/Panel on Ubuntu
How to add keyboard shortcuts for actions in Ubuntu
How to install some popular games(emulators) on Ubuntu
How to run Windows applications on Ubuntu
| Type: | ArticleContent |
| Updated at: | 20 Jun 01:41 |
| Updated by: | Vinaya |
| Tags: | combine pdf files pdftk_burst pdftk_cat pull apart separate |
| Keywords: | pdf files, pull apart, combine, separate, pdftk_burst, pdftk_cat, combine pdf file, separate pdf file, merge pdf file, pull apart pdf file, pdf file, pdf file ubuntu, pdf ubuntu, pdf single file, pdf multiple files, separate pdf, ubuntu delete page pdf file , ubuntu combine pdf files , merge two pdf ubuntu , zolved , combine pdf files , how to combine pdf files , combine pdf ubuntu , combine pdf , combine pdf file , separate pdf , combine pdf files ubuntu , combine pdf file ubuntu , ubuntu combine pdf , separate pdf files pdftk , separate pdf file , ubuntu edit pdf , open pdf files ubuntu , ubuntu edit pdf files , bash combine files , command bash pdf separate page , to separate pdf file , how to install pdftk , pdf combine pdf file , how to combine pdf files into one file , ubuntu, combine pdf files , how to combine two separate pdf to one , combine pdf files in ubuntu , pdf separate page files , ubuntu pdf combine , how to separate pdf files , ubuntu pdf files , how to view files in ubuntu terminal , pdf files ubuntu , change page pdf ubuntu , combine separate pdf , combiner pdf file , ubuntu pdf convert , pdf file combine , edit pdf files on ubuntu linux , open source pdf combiner ubuntu , ubuntu open with custom command , combine .pdf files , open pdf files in ubuntu , ubuntu how to change permissions on pdf file , open pdf file in terminal window , custom commands ubuntu open with , combine pdf files -acrobat -adobe , ubuntu pdf to txt conversion , terminal combine files , combine files |
| Brand: |
Topic > How To Topic > Top Solutions Article Source > Authored in Zolved Brand > Ubuntu |
rss feeds | browse | terms of use | privacy policy | faq | site feedback | about ZOLVED™
copyright © 2007, IPTouch, Inc.
del.icio.us
stumble








