In short.
DeepTutor’s PDF skill is a PDF-processing instruction set for AI assistants and developers configuring them, with a prepared sandbox required and scanned-text recognition unavailable in the documented environment. It assigns extraction to pdfplumber, page operations and forms to pypdf, document creation to reportlab, and rendering to PyMuPDF. Its examples include tables exported to Excel, watermarks, encryption, form annotations and font registration. The instructions include output-validation steps, but the supplied evidence contains no execution results, dependency versions, accuracy measurements or operating prices.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete captured scope of deeptutor/skills/builtin/pdf, represented by SKILL.md at commit 60fb3bdfddb30b7740c7ce3bd9b28d908f2af6db, plus the repository-level LICENSE and THIRD_PARTY_NOTICES.md. The rest of DeepTutor, host workspace instructions, dependency implementations, installation configuration and runtime behavior are outside the supplied evidence. No code or PDF operation was executed; functionality, output quality, performance and environment compatibility remain unverified.
The overview
identity
The resource is deeptutor/skills/builtin/pdf/SKILL.md in the HKUDS/DeepTutor repository. Its declared name is pdf, its tags are tool and office, and its metadata requires a shell sandbox. It is an assistant instruction file containing Python recipes.
The original folder address is [https://github.com/HKUDS/DeepTutor/tree/main/deeptutor/skills/builtin/pdf]. The supplied snapshot is pinned to commit 60fb3bdfddb30b7740c7ce3bd9b28d908f2af6db.
assessment
The skill is useful when an assistant already has access to a suitable Python workspace and needs practical guidance for common PDF jobs. It connects concrete tasks to libraries and provides examples extending beyond basic text extraction, including form values, coordinate conversion and non-Latin fonts.
Its practical fit depends on the host environment. Statements that libraries are preinstalled and network access is disabled describe the intended sandbox; the supplied files do not demonstrate those conditions in another installation. Runtime compatibility and output quality are not established.
users
Potential users include people asking a configured assistant to extract report tables, combine documents, fill forms or create a PDF, and developers equipping an assistant with those abilities.
Beginners can benefit from the task guidance once a host is configured, but the file is not a complete installation guide. Experienced developers receive library choices, API examples and specific cautions about form states, page coordinates and font embedding.
capabilities
Documented extraction tasks include text, tables, layout information and word coordinates. A spreadsheet example uses openpyxl to place extracted tables into separate Excel worksheets.
Editing recipes cover merging, splitting, rotation, cropping, watermarking, metadata, encryption and password-based decryption. Form guidance distinguishes fillable AcroForm fields from flat documents that require positioned annotations.
Creation guidance uses reportlab for flowing documents or absolute positioning. PyMuPDF examples render pages or selected regions to images. Rendering does not recognize text in scanned pages.
Using it
requirements
The expected host provides a shell-capable sandbox and an exec interface accepting complete Python source with language set to python. The recipes use pdfplumber, pypdf, reportlab and PyMuPDF, imported as fitz; the Excel example also requires openpyxl.
Documents containing Chinese, Japanese, Korean or other unsupported characters require a compatible font registered with reportlab and applied throughout the output. The supplied helper searches several Linux, macOS and Windows font locations and raises an error if registration fails.
Python versions, package versions, compatible assistant hosts, minimum hardware and installation commands are not supplied. The documented environment has no OCR engine and no network access.
mechanism
The assistant selects a library according to the requested operation, writes Python and executes it in the host workspace. pdfplumber handles layout-aware extraction, pypdf handles document structure and forms, reportlab creates documents, and PyMuPDF renders pages.
The instructions call for creating, reopening and validating artifacts where possible. Form checks include reading saved field values or extracting annotation text. They also direct the assistant to diagnose execution failures and change strategy instead of repeating identical failed code.
setup
The supplied file can serve as instructions for a compatible assistant host, but the exact skill-registration or installation procedure is not documented. Integration therefore requires confirming how that host loads SKILL.md files and provides the expected Python execution interface.
Before relying on the recipes, confirm the required imports, workspace input and output locations, and fonts needed by the documents. The file delegates workspace boundaries and artifact presentation to separate host instructions that are absent from this scope.
For Markdown or HTML conversion, the skill suggests checking for soffice or pandoc and creating the PDF directly with reportlab when neither is available.
example
A supplied example opens in.pdf with pdfplumber, visits each page and extracts tables. It creates one worksheet per nonempty table using openpyxl, names sheets using page and table numbers, and saves tables.xlsx.
The example saves the workbook only when at least one table is found. It therefore provides no spreadsheet output when extraction detects no tables. The source also offers adjustable table-detection settings and page-region cropping for difficult layouts; no example output or extraction-accuracy result is supplied.
Assessment & evidence
limitations
Scanned-text recovery is outside the documented environment: no OCR engine is installed, and rendering a page produces pixels without recognizing its text. The instructions treat empty or garbled extraction as a reason to stop rather than invent content.
Document creation depends on font availability and correct application. The skill warns that reportlab’s built-in fonts cannot render CJK text and that its font-registration approach cannot embed CFF/OpenType outlines.
No execution results establish extraction accuracy, layout fidelity, compatibility with particular forms, large-file performance or reliability across dependency versions. Reopening a file or extracting its text also does not by itself establish correct visual placement.
reasoning
The strongest evidence for usefulness is the specificity of the recipes. The form section explains checkbox state strings, distinguishes fillable fields from flat forms, and converts coordinates between top-origin extraction data and bottom-origin PDF annotations.
The font and OCR sections identify concrete failure conditions and explain when output should be withheld. These instructions can help an assistant avoid misleading artifacts, although their effectiveness depends on the assistant following them and on the host matching the stated assumptions.
alternatives
A developer comfortable writing Python could use the named libraries directly: pdfplumber for layout-aware extraction, pypdf for page and form operations, reportlab for creation, and PyMuPDF for rendering. These are the underlying tools used by the skill’s examples.
Scanned-text work requires an OCR-capable approach beyond this skill’s documented sandbox. The supplied evidence does not compare other assistant skills, PDF applications or OCR services, so relative quality and cost are unknown.
evidence
The selected folder is represented by one captured file, deeptutor/skills/builtin/pdf/SKILL.md, accompanied by the repository-level LICENSE and THIRD_PARTY_NOTICES.md. The pinned skill source is [https://raw.githubusercontent.com/HKUDS/DeepTutor/60fb3bdfddb30b7740c7ce3bd9b28d908f2af6db/deeptutor/skills/builtin/pdf/SKILL.md].
The captured SKILL.md has SHA-256 c950efb9d180879b978f765cfc0e6f217669231a62e618054ebff6df1002a8e3. The evidence contains instructions and code examples, with no execution logs, generated artifacts, benchmarks or compatibility results.
Access & freshness
costs
The supplied files state no purchase price, hosted subscription, per-document charge, model usage cost or hardware budget. Assistant, hosting and execution costs are unspecified, so total operating cost is unknown.
The repository licence grants no-charge, royalty-free rights to the covered work under its conditions. Those permissions do not establish the cost of running a configured assistant.
rights
The repository LICENSE states Apache License 2.0 and identifies Copyright 2025 Data Intelligence Lab, The University of Hong Kong. Its terms permit reuse, modification and distribution, subject to conditions including supplying the licence, marking modified files and retaining applicable notices. It provides no warranty and does not grant general trademark rights. Source: [https://raw.githubusercontent.com/HKUDS/DeepTutor/60fb3bdfddb30b7740c7ce3bd9b28d908f2af6db/LICENSE].
THIRD_PARTY_NOTICES.md contains MIT notices for CSSwitch, Hermes Agent and thinking-orbs. Its descriptions concern authentication, messaging integrations and interface components; none identifies material in the selected PDF skill. Preserve the captured notices with a redistributed package. Source: [https://raw.githubusercontent.com/HKUDS/DeepTutor/60fb3bdfddb30b7740c7ce3bd9b28d908f2af6db/THIRD_PARTY_NOTICES.md].
These files do not establish the licence terms of every named Python dependency or permissions for documents a user processes.
freshness
The supplied files were captured at 2026-11-15T17:35:38.721Z from commit 60fb3bdfddb30b7740c7ce3bd9b28d908f2af6db. That identifies the snapshot; it does not establish when the PDF skill was last changed.
No separate skill release number, dependency versions or compatibility history is supplied. Differences between this snapshot and later repository content are unknown.
actions
For adoption, first confirm that the assistant host can load the file and provide the expected Python sandbox. Check the required libraries and any fonts needed for your documents.
Evaluate a representative document before relying on the skill for repeated work. For tables, compare extracted cells with the original; for forms and generated PDFs, inspect saved values and rendered placement. These are recommended checks, with no supplied results establishing their outcome.
If the task requires scanned-text recognition, choose an OCR-capable environment or separate OCR step. Retain the pinned source and licence notices when copying or adapting the skill.
