Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.35 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.35 KB

Opensource PDF toolkit

This project aims to provide pdf tooling that free of charge to users. The scripts work using bash.

Project Structure

Setup

  1. Clone the repository:

    git clone https://github.com/Triples92/PDF_tools
  2. Change directory to match user's workspace:
    Replace the directory link in the source and python lines in merge_pdf.shto match the directory your cloned repository is in.

  3. Install dependencies:

    pip install -r requirements.txt

Merging PDFs

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.

Usage

Using merge_pdf.sh

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.shscript:
./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`.