@rishabhdugar

PDF to JPG

Convert PDF pages to high-quality JPG images with customizable DPI, resolution, and quality settings. Extract individual pages or batch convert entire documents. Powered by PDFAPIHub.

当前版本
v1.0.0
code-plugin社区source-linked

PDF to JPG — OpenClaw Plugin

Convert PDF pages to high-quality JPG images using the PDFAPIHub API. This OpenClaw plugin gives your AI agent the ability to extract pages from any PDF as images with full control over resolution, quality, and dimensions.

What It Does

Transform PDF document pages into JPG, PNG, or WebP images — one page at a time or the entire document in a single call. Ideal for thumbnails, previews, archiving, and image-based workflows.

Features

  • High-Quality Conversion — Crisp images with DPI from 72 to 300
  • Quality Control — Adjustable compression quality from 1 to 100
  • Custom Dimensions — Set width and/or height with automatic aspect ratio
  • Multiple Formats — Output as JPG, PNG, or WebP
  • Page Selection — Convert a single page, page ranges, or all pages
  • Quick Thumbnails — One-click 400px preview of page 1
  • PDF Info — Check page count and metadata before converting
  • Flexible Output — Download URL, base64 string, or raw file

Tools

ToolDescription
pdf_to_jpgConvert PDF pages to JPG with custom DPI, quality, and dimensions
pdf_page_previewQuick 400px thumbnail preview of the first page
pdf_infoGet PDF metadata: page count, file size, encryption status

Installation

openclaw plugins install clawhub:pdfapihub-pdf-to-jpg

Configuration

Add your API key in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "pdfapihub-pdf-to-jpg": {
        "enabled": true,
        "env": {
          "PDFAPIHUB_API_KEY": "your-api-key-here"
        }
      }
    }
  }
}

Get your free API key at https://pdfapihub.com.

Usage Examples

Just ask your OpenClaw agent:

Use Cases

  • Document Previews — Generate thumbnail images for PDF documents in galleries and file browsers
  • Social Media Sharing — Convert PDF flyers and posters to shareable JPG images
  • Archiving — Convert PDF pages to images for long-term storage in image-based systems
  • Presentations — Extract PDF slides as images for embedding in web pages or presentations
  • OCR Preprocessing — Convert PDF pages to images before running OCR or computer vision
  • E-commerce — Extract product catalog pages as individual product images

API Documentation

Full API docs: https://pdfapihub.com/docs

License

MIT

源码与版本

源码仓库

PdfApiHub/openclaw-pdf-to-jpg

打开仓库

源码提交

e3dd4d026e6aae377c2b787dc923ed01555cd794

查看提交

安装命令

openclaw plugins install clawhub:pdf-to-jpg

元数据

  • 包名: pdf-to-jpg
  • 创建时间: 2026/04/17
  • 更新时间: 2026/04/17
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.3.24-beta.2
  • 插件 API 范围: >=2026.3.24-beta.2
  • 标签: latest
  • 文件数: 7