PDF to Image
Paste the following prompt into your AI chat to install this skill:
Please install @user_c8d6ee44/pdfzhuantu according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Exporting PDF pages as images is often blocked by details: Chinese text and printed graphics may look blurry, page selection can be ambiguous, and Python dependencies may be hard to pin down. PDF to Image renders unencrypted PDFs to PNG without requiring manual screenshots, ad hoc fitz scripts, or repeated trial and error across interpreters.
How It Works
- Input parsing: reads the user-supplied PDF path and page intent, then writes output to a timestamped
PDF转图folder on the desktop. - Environment detection: uses
scripts/detect_env.pyto enumerate Python interpreters, testfitzavailability, and selectTARGET_PYTHON, avoiding reliance on the defaultPATHinterpreter or duplicate installs. - Conversion: renders pages at a fixed
2xresolution, roughly144 DPI, with support for one page, a selected page, or all pages; multi-page PDFs require confirmation before full conversion. - Verification: checks the output folder, page count, file sizes, and resolution, then reports successful and failed pages.
Limits
It fits documents, invoices, reports, and other clean PDFs where clear PNG output is enough. It does not support encrypted or corrupted PDFs, does not run OCR, and renders scanned PDFs as-is. Current output is PNG only, resolution is fixed, and the skill does not modify the original PDF, batch multiple files, skip environment checks, or overwrite existing files silently.
Use Cases
- Export a selected page from a single unencrypted PDF contract to a clear PNG for tickets or email attachments.
- Render all pages of a multi-page PDF report into images after user confirmation, saved under a timestamped desktop folder.
- Detect the local Python interpreter and install the matching `PyMuPDF` package before converting when dependencies are uncertain.
- Render scanned PDFs to PNG for layout review without running OCR.
Best For
- Customer support engineers who need PDF pages as images for tickets or documentation
- Business reviewers who check layouts in contracts, reports, or invoices
- Automation engineers who need stable `fitz` rendering across multiple Python interpreters
- Design execution staff who convert unencrypted PDFs into PNGs for secondary layout work
Related Skills
Turns files, references, or chat context into styled single-page HTML reports with built-in templates and preset themes.
An engineering-oriented email automation solution for batch sending, Jinja2 templates, attachments, scheduled sending, inbox monitoring, and rule-based auto-reply.
An engineering workflow for creating, editing, reviewing, analyzing, and image-converting .docx files using pandoc, docx-js, OOXML, and LibreOffice.
Pre-submission scanner for Word/PDF blind-bid files that checks margins, fonts, page numbers, and metadata against tender requirements and flags residual bidder identities.