This project aims to provide pdf tooling that free of charge to users. The scripts work using bash.
- Merging PDFs
- other tools coming soon...
-
Clone the repository:
git clone https://github.com/Triples92/PDF_tools
-
Change directory to match user's workspace:
Replace the directory link in thesource
andpython
lines inmerge_pdf.sh
to match the directory your cloned repository is in. -
Install dependencies:
pip install -r requirements.txt
The merge_pdf script can merge up to 6 pdfs at a time. The order of the pdfs merged depends on the order you call each file.
To merge PDF files using the merge_pdf.sh
script, simply run the script as below. You must start the first variable with the file name and ensure that you add the extension. See example below:
Run the merge_pdf.sh
script:
./merge_pdf.sh <output-file> <input-file-1> <input-file-2> <input-file-3> <input-file-4> <input-file-5>
Example:
```
./merge_pdf.sh merged.pdf file1.pdf file2.pdf file3.pdf file4.pdf file5.pdf
```
This will merge the specified input PDF files into a single output file named `merged.pdf`.