HowTo: Merge Pdf Files
Mattneri
In this little guide I’ll explain how to merge pdf files on Linux Terminal.
There are actually many tools that permit to merge some pdf files together (pdfmerge, pdfjam, …) but in this example I’ll use pdftk.
Ubuntu users can install this tool using apt-get: sudo apt-get install pdftk
Now if you want to merge 2 files (first.pdf and second.pdf) to obtain result.pdf you just have to write down this cmd:
pdftk first.pdf second.pdf cat output result.pdf
Actually you can use this tools not only to merge pdf docs but as well for:
- Split PDF Pages into a New Document
- Decrypt Input as Necessary (Password Required)
- Encrypt Output as Desired
- Fill PDF Forms with FDF Data and/or Flatten Forms
- Apply a Background Watermark
- Report on PDF Metrics such as Metadata, Bookmarks, and Page Labels
- Update PDF Metadata
- Attach Files to PDF Pages or the PDF Document
- Unpack PDF Attachments
- Burst a PDF Document into Single Pages
- Uncompress and Re-Compress Page Streams
- Repair Corrupted PDF (Where Possible)
Posted in Linux |
2 Comments »
