Skip to content

Bash script to corss Merge PDF-Files. e.g. Dok1 hast Pages A1, A2, A3 and Dok2 has Pages B1, B2 and B3. The result will be A1, B1, A2, B2, A3, B3

License

Notifications You must be signed in to change notification settings

typedcode/crossmerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

crossmerge

Bash scripts to corss-merge or cross-reverse-merge PDF-Files. e.g. Dok1 hast Pages A1, A2, A3 and Dok2 has Pages B1, B2, B3. The result will be

cross-merged: A1, B1, A2, B2, A3, B3

cross-reverse-merged: A1, B3, A2, B2, A3, B1

prerequisites

The script uses pdftk for merging the files. One must install pdftk before one can use the script

e.G. install via

#Fedora:
sudo dnf install pdftk

#Debian/Ubuntu:
sudo apt-get install pdftk

usage

cross merge

sh crossmerge.sh document1.pdf document2.pdf output.pdf

cross reverse merge

sh crossreversemerge.sh document1.pdf document2.pdf output.pdf

If one is interested in why crossreversemerge.sh exists read my post on dev.to.

About

Bash script to corss Merge PDF-Files. e.g. Dok1 hast Pages A1, A2, A3 and Dok2 has Pages B1, B2 and B3. The result will be A1, B1, A2, B2, A3, B3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages