Socket
Book a DemoInstallSign in
Socket

pdfie

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfie

Extract images from PDF keeping transparency masks. Supports PNG and WEBP output.

1.0.9
latest
npmnpm
Version published
Weekly downloads
18
-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

PDFIE - PDF Image Extractor

A fast, efficient CLI tool for extracting images from PDF files while preserving transparency masks and alpha channels. Built with Bun, MuPDF, and Sharp for optimal performance.

Features

  • 🖼️ Extract all images from PDF documents
  • 🎭 Preserve transparency masks and alpha channels
  • 🔧 Multiple output formats: PNG (default) and WebP
  • 🚀 Batch processing for improved performance
  • 📏 Size filtering to skip small/irrelevant images

Usage

pdfie requires Bun runtime installed. See installation instruction at https://bun.sh/

Basic Usage

# Extract all images from a PDF as loseless PNGs
bunx pdfie document.pdf

Advanced Options

# Extract all images as WEBP
bunx pdfie document.pdf --webp

# Extract images with minimum image size (in pixels) as WEBP with custom quality
bunx pdfie document.pdf --webp 85 --min 64

Command Line Options

OptionDescriptionDefault
--webp [quality]Output as WebP format with optional quality (1-100)90
--batch <number>Number of images to process concurrently10
--min <number>Minimum image size in pixels (width or height)32
--skip <boolean>Skip images smaller than min-sizetrue

Thanks

  • MuPDF: PDF parsing and image extraction
  • Sharp: High-performance image processing
  • Bun: Fast JavaScript runtime

Keywords

cli

FAQs

Package last updated on 07 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.