PDF QR Extractor

# PDF QR Code Extractor

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "PDF QR Extractor" with this command: npx skills add mywebliu/pdf-qr-extractor

PDF QR Code Extractor

从 PDF 文件中提取每一页的图片,并检测、裁剪保存其中的二维码。

功能

  • 将 PDF 每一页转换为图片
  • 使用 OpenCV + pyzbar 检测并裁剪二维码区域
  • 二维码周围留有 10 像素白边(padding),便于扫码识别
  • 保存到指定目录

使用方法

请帮我提取 PDF 中的二维码:[PDF文件路径]

例如:

请帮我提取 PDF 中的二维码:D:/pdftest/text.pdf

或者指定输出目录:

请帮我提取 PDF 中的二维码:D:/pdftest/text.pdf,输出到 ./my_qr

依赖安装

需要先安装依赖:

pip install fitz PyMuPDF opencv-python numpy pyzbar --break-system-packages

输出结构

输出目录/
├── qr_page_1_1.png      # 二维码图片
├── qr_page_2_1.png
├── text.pdf_pages/       # PDF页面图片(中间文件)
│   ├── page_1.png
│   └── page_2.png

适用场景

客户提供的 PDF 文件中包含生成的二维码,需要批量提取保存。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

YiHui GIT MONITOR

通用 Git 项目监控工具。支持 GitHub、GitLab、Gitee 等所有 Git 平台。可以添加、删除、检查任意 Git 仓库的更新,自动拉取代码并生成变更摘要。

Registry SourceRecently Updated
00Profile unavailable
Coding

Workspace Governance

A methodology-first workspace governance skill for AI agents. Focuses on principles, decision framework, and safe execution patterns instead of fixed directo...

Registry SourceRecently Updated
Coding

Nox Influencer - Creator Discovery & Influencer Marketing

Runs NoxInfluencer creator and marketing-ops workflows via CLI, including creator discovery for influencer marketing, creator marketing, UGC, social media ma...

Registry SourceRecently Updated
Coding

Gigo Lobster Doctor

🦞 GIGO · gigo-lobster-doctor: 环境体检模式:只检查 gateway、Python 依赖、题包链路与 PNG 证书能力,不跑正式试吃。 Triggers: 龙虾体检 / 检查龙虾环境 / lobster doctor / check lobster environment.

Registry SourceRecently Updated