返回顶部
p

pdf2jpg

Convert PDF files to JPEG images with pdftoppm, support optional page ranges, and bundle generated JPGs into a zip archive for sharing. Use when a user wants to turn a PDF into page images, extract selected pages, or package the results. Requires poppler-utils / pdftoppm.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
106
下载量
0
收藏
概述
安装方式
版本历史

pdf2jpg

# pdf2jpg ## Overview Convert a PDF into JPEG page images using `pdftoppm` from `poppler-utils`, then optionally zip the generated JPGs. ## Requirements - `pdftoppm` must be available in `PATH` - Install the `poppler-utils` package before running the scripts ### Install `poppler-utils` - **Debian / Ubuntu**: ```bash sudo apt update sudo apt install -y poppler-utils ``` - **Windows**: - Install Poppler via a package manager, then make `pdftoppm.exe` available in your `PATH` - Common options: - `winget install -e --id oschwartz10612.Poppler` - `choco install poppler` - `scoop install poppler` - **macOS**: ```bash brew install poppler ``` ## Standard workflow 1. Convert the PDF with `scripts/pdf2jpg.sh` 2. Bundle the output images with `scripts/zip_jpgs.sh` if needed ```bash ./scripts/pdf2jpg.sh input.pdf ./scripts/pdf2jpg.sh input.pdf 2 5 ./scripts/zip_jpgs.sh input.pdf ./scripts/zip_jpgs.sh input.pdf /tmp/output.zip ``` ## Scripts ### `scripts/pdf2jpg.sh` - Prompts for the PDF path if none is supplied - Verifies the input file exists - Verifies `pdftoppm` is installed and prints a `poppler-utils` install hint if not - Writes JPEGs beside the PDF using the PDF basename as the output prefix - Accepts optional `first` and `last` page arguments ### `scripts/zip_jpgs.sh` - Finds matching `basename-*.jpg` files for the PDF - Creates a zip archive containing those JPGs - Uses `${base}-jpgs.zip` by default when no output path is supplied ## Notes - Output files follow the `pdftoppm` naming convention, typically `basename-1.jpg`, `basename-2.jpg`, etc. - If you need different image quality, output naming, or archive behavior, edit the bundled scripts rather than reimplementing the command inline.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 pdf2jpg-1776104582 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 pdf2jpg-1776104582 技能

通过命令行安装

skillhub install pdf2jpg-1776104582

下载 Zip 包

⬇ 下载 pdf2jpg v1.0.0

文件大小: 2.41 KB | 发布时间: 2026-4-14 14:10

v1.0.0 最新 2026-4-14 14:10
Initial release: convert PDF pages to JPG with pdftoppm, support page ranges, and zip generated images for sharing. Includes dependency checks and installation notes for poppler-utils.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部