rikukawano / pdf-genie

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“š PDF Genie

Welcome to PDF Genie! Your ultimate tool for converting PDF files into images effortlessly. πŸš€

✨ Features

  • Convert PDFs to Images: Transform each page of your PDF into high-quality images.
  • Easy to Use: Simple command-line interface for quick conversions.
  • Custom Output Directory: Specify where you want your images saved.

πŸ› οΈ Installation

  1. Clone the Repository:

    git clone https://github.com/rikukawano/pdf-genie.git
    cd pdf-genie
  2. Install Dependencies:

    bun install
  3. Install GraphicsMagick:

    • macOS:
      brew install graphicsmagick
      brew install ghostscript
      
    • Ubuntu/Debian:
      sudo apt-get install graphicsmagick
      sudo apt-get install ghostscript
      
  4. Verify Installation:

    gm -version
    

πŸš€ Usage

Convert your PDFs to images with a single command:

bun index.ts [options] <files...>

Options

  • -o, --output <directory>: Specify the output directory for the converted images (default: output).

Example

bun index.ts -o my_images /path/to/your/file.pdf

πŸ“ License

This project is licensed under the MIT License.

Happy Converting! πŸŽ‰

About


Languages

Language:TypeScript 100.0%