stapler
is a command-line utility for merging multiple PDF files into a single PDF document. It offers options to specify input files, an output file, and optional compression for the output.
- Merge multiple PDF files into one.
- Optional compression for the output file.
- Command-line interface for easy integration into scripts or automation workflows.
To use stapler
, you need to have Rust installed. If Rust is not installed, install it from here.
Clone this repository and build the project:
git clone git@github.com:tekikaito/stapler.git
cd stapler
cargo build --release
The compiled binary will be located in the target/release
directory.
stapler --input <PDF_FILES> --output <OUTPUT_FILE> [--compress]
--input
,-i
(required): List of input PDF files to merge.--output
,-o
(required): Name of the output PDF file.--compress
,-c
(optional): Enables compression for the output PDF file.
Merge two PDF files without compression:
stapler --input file1.pdf file2.pdf --output merged.pdf
Merge and compress the output:
stapler --input file1.pdf file2.pdf --output merged.pdf --compress
This project is licensed under the MIT License. See the LICENSE
file for details.