A fast and lightweight command-line tool to convert PDF pages into high-quality images. Perfect for automation, batch processing, and backend pipelines. ⚡
🚀 Features
-
🖼️ Convert every PDF page into PNG/JPG images
-
🔍 Adjustable DPI for crisp output
-
📁 Specify custom output directory
-
🧰 Easy installation via Cargo
-
⚡ Built with Rust for maximum performance
Install using Cargo:
cargo install pdf2image-cli
You can specify the password using the --password argument.
After cloning this repository:
cargo run -- --input Fuzzy.pdf --output-dir images --dpi 150 --format pngpdf2images --input Fuzzy.pdf --output-dir images --dpi 150 --format pngTo use pdfium-render, you need the libpdfium.so binary for your system.
- Clone the official pdfium-binaries repository:
git clone https://github.com/bblanchon/pdfium-binaries
cd pdfium-binaries- Build the library according to your OS and architecture. For example, on Linux x64:
./build.sh linux x64- After the build completes, the compiled
libpdfium.sowill be available inside the build output directory.
Copy it into your project’s expected library path (e.g., ./pdfium/ or /usr/lib/).