AI Agent Hub
Back to skills
Office Document Processing Workflow icon

Office Document Processing Workflow

Office Efficiency Updated 2026.08.30

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 pypdf to merge, split, rotate pages, and read or write metadata.
  • Content extraction: use pdfplumber for 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 reportlab using Canvas or Platypus.
  • Command-line support: pair the Python path with pdftotext, qpdf, and optionally pdftk for 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.