Office Document Processing Workflow
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_f39a06e7/docx1234.
About this skill
Scriptable PDF processing workflows
When working with office documents, PDFs often need merging, splitting, text and table extraction, watermarking, password protection, and metadata handling. This skill organizes those operations into a practical path centered on Python libraries and command-line tools, reducing ad hoc API lookups.
Core capabilities and workflow
- Basic file operations: use
pypdfto merge, split, rotate pages, and read or write metadata. - Content extraction: use
pdfplumberfor layout-aware text extraction and table extraction; for scanned PDFs, convert pages to images before OCR. - PDF generation: create single-page and multi-page documents with
reportlabusingCanvasorPlatypus. - Command-line support: pair the Python path with
pdftotext,qpdf, and optionallypdftkfor batch pipelines.
The skill selects tools by task: pypdf for merge and split workflows, pdfplumber for text and table extraction, reportlab for creating new PDFs, and qpdf for command-line batch processing.
Boundaries
It is focused on scriptable PDF operations rather than complex layout design. Form filling, advanced pypdfium2 usage, JavaScript pdf-lib, and troubleshooting require the follow-up references. If the source file is image-based, make the OCR step explicit instead of parsing it as a text-based PDF.
Use Cases
- Merge multiple quarterly report PDFs into one archive, then split them by chapter.
- Extract tables from supplier PDF quotes and normalize them into rows and columns.
- Run OCR on scanned contract pages so key clauses can be searched and reviewed.
- Add headers, footers, and a fixed watermark to generated multi-page PDFs.
Best For
- Document admins who need to merge quarterly reports and split files by chapter.
- Data analysts extracting quote tables from PDFs into structured rows and columns.
- Backend engineers scripting pypdf or qpdf pipelines for document processing.
- Legal assistants extracting scanned contract text to locate key clauses.
Related Skills
Generate and edit .pptx decks with python-pptx, applying structured layouts, design rules, native charts, and visual QA to reduce template-like output.
Tencent Cloud Table Recognition V3 is an OCR skill for detecting and recognizing tables in images or PDFs, supporting various table types like linear and borderless tables, with Excel export.
The complete set of online document operation tools provided by Tencent Docs MCP, supporting creation, querying, and editing of smart docs, Excel, PPT, mind maps, and more.
Turn a topic, notes, or tables into a complete PPT plan with logic, page layouts, visual and chart guidance, and natural defense scripts.