跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

PDF Processing OpenAI

技能 已验证 活跃

Toolkit for comprehensive PDF reading, reviwing, and creation with visual quality control. Use to work with PDFs (.pdf files) for: (1) Reading or extracting content from existing PDFs, (2) Creating new PDF documents with professional formatting, (3) Generating reports, documents, or layouts that require precise typography and design, or any other PDF reading or generation tasks.

目的

To enable AI agents to perform comprehensive PDF reading, reviewing, and creation tasks with a focus on visual quality control and professional formatting.

功能

  • Reading and extracting content from existing PDFs
  • Creating new PDF documents with formatting
  • Generating reports and layouts with precise typography
  • Visual quality control of rendered PDF pages
  • Programmatic PDF generation using reportlab

使用场景

  • Use to extract text and data from PDFs when layout fidelity is important.
  • Use to programmatically generate professional-looking PDF documents for reports or proposals.
  • Use to review and validate the visual appearance of generated PDFs before delivery.
  • Use for any task requiring nuanced PDF content manipulation or generation.

非目标

  • Editing existing PDF content directly (focus is on creation and extraction).
  • Handling highly complex interactive PDF forms beyond basic content.
  • Providing a GUI or visual editor; operates via LLM prompts and scripts.

工作流

  1. Render PDF pages to PNGs for visual inspection, using pdftoppm if available.
  2. Use reportlab for programmatic PDF creation.
  3. Employ pdfplumber or pypdf for text extraction and quick checks.
  4. Re-render pages after updates to verify alignment, spacing, and legibility.
  5. Clean up or remove intermediate files after final approval.

先决条件

  • Python 3 environment
  • Poppler utils (for rendering PDFs to PNGs)
  • uv or pip for Python package management

Code Execution

  • info:ValidationThe skill relies on external tools for input handling and does not explicitly mention schema validation libraries within its own instructions.
  • info:Error HandlingThe skill mentions telling the user about missing dependencies if installation fails, but doesn't specify structured error reporting for other operational failures.
  • info:LoggingThe skill mentions deleting intermediate files and keeping final artifacts organized, implying some level of state management but no explicit audit logging.

Errors

  • info:Actionable error messagesThe skill mentions informing the user about missing dependencies, but lacks detailed error handling for other potential operational failures.

Execution

  • info:Pinned dependenciesWhile Python dependencies are listed, explicit pinning via a lockfile (like `uv.lock` or `poetry.lock`) is not mentioned or evident. System tool installation commands are standard but not pinned to specific versions.

Practical Utility

  • info:Usage examplesThe SKILL.md provides dependency installation commands and a rendering command example, but lacks end-to-end examples demonstrating input, invocation, and output for the core PDF processing tasks.
  • info:Edge casesThe skill mentions handling missing dependencies as a failure mode and recovery step, but does not explicitly detail other edge cases for PDF processing (e.g., corrupted files, complex layouts).

安装

请先添加 Marketplace

/plugin marketplace add lawvable/awesome-legal-skills
/plugin install pdf-processing-openai@lawvable

质量评分

已验证
85 /100
about 22 hours ago 分析

信任信号

最近提交2 months ago
星标349
许可证Apache-2.0
状态
查看源代码