| Crates.io | oxidize-pdf-cli |
| lib.rs | oxidize-pdf-cli |
| version | 1.1.7 |
| created_at | 2025-07-12 22:01:27.159052+00 |
| updated_at | 2025-08-05 13:43:51.629185+00 |
| description | Command-line interface for oxidizePdf |
| homepage | |
| repository | https://github.com/bzsanti/oxidizePdf |
| max_upload_size | |
| id | 1749735 |
| size | 75,074 |
Command-line interface for oxidizePdf - A high-performance PDF manipulation library written in Rust.
cargo install oxidize-pdf-cli
oxidizepdf [COMMAND] [OPTIONS]
Combine multiple PDF files into a single document:
oxidizepdf merge input1.pdf input2.pdf -o output.pdf
Split a PDF into individual pages or chunks:
# Split into individual pages
oxidizepdf split input.pdf -o output_dir/
# Split into chunks of N pages
oxidizepdf split input.pdf --chunk-size 5 -o output_dir/
Extract specific pages from a PDF:
# Extract pages 1-5 and 10
oxidizepdf extract input.pdf --pages 1-5,10 -o output.pdf
Rotate pages in a PDF:
# Rotate all pages 90 degrees clockwise
oxidizepdf rotate input.pdf --angle 90 -o output.pdf
# Rotate specific pages
oxidizepdf rotate input.pdf --pages 1,3,5 --angle 180 -o output.pdf
Extract text content from PDFs:
# Extract all text
oxidizepdf text input.pdf
# Extract text from specific pages
oxidizepdf text input.pdf --pages 1-10
Display PDF metadata and information:
oxidizepdf info input.pdf
-o, --output <FILE>: Output file path-v, --verbose: Enable verbose logging-q, --quiet: Suppress all output except errors--help: Display help information--version: Display version informationProcess multiple PDFs in a directory:
# Merge all PDFs in a directory
oxidizepdf merge *.pdf -o combined.pdf
# Split multiple PDFs
for file in *.pdf; do
oxidizepdf split "$file" -o "split_${file%.pdf}/"
done
# Extract specific pages and rotate them
oxidizepdf extract input.pdf --pages 1-5 | \
oxidizepdf rotate --angle 90 -o rotated_pages.pdf
# Merge PDFs with metadata preservation
oxidizepdf merge doc1.pdf doc2.pdf \
--preserve-metadata \
--title "Combined Document" \
-o merged.pdf
oxidize-pdf-cli can be configured using environment variables:
OXIDIZEPDF_LOG_LEVEL: Set logging level (trace, debug, info, warn, error)OXIDIZEPDF_BUFFER_SIZE: Set buffer size for streaming operationsThis project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.