Skip to content

darixsamani/pdf2image-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📄➡️🖼️ Pdf2Image CLI

Rust Crates.io Docs.rs License Version

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


📦 Installation

Install using Cargo:

cargo install pdf2image-cli

🛠️ Usage

You can specify the password using the --password argument.

▶️ Run from source

After cloning this repository:

cargo run -- --input Fuzzy.pdf --output-dir images --dpi 150 --format png

▶️ Run after installation

pdf2images --input Fuzzy.pdf --output-dir images --dpi 150 --format png

📥 Installing libpdfium.so

To use pdfium-render, you need the libpdfium.so binary for your system.

  1. Clone the official pdfium-binaries repository:
git clone https://github.com/bblanchon/pdfium-binaries
cd pdfium-binaries
  1. Build the library according to your OS and architecture. For example, on Linux x64:
./build.sh linux x64
  1. After the build completes, the compiled libpdfium.so will be available inside the build output directory.

Copy it into your project’s expected library path (e.g., ./pdfium/ or /usr/lib/).

About

A command-line application that converts PDF files into high-quality images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages