All skills
tencent avatar

/pdf-processing

@33f7e7d
by tencenttencent/weknora31k stars
4,205

Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.

Use this Skill: https://skilld.dev/gh/tencent/weknora/pdf-processing

This session only. Nothing lands on disk.

FORMS.md

≈221 tokens on demand. Your agent reads this file only when SKILL.md points to it.

PDF Form Filling Guide

This guide covers how to fill PDF forms programmatically.

Prerequisites

Install required packages:

pip install pypdf pdfrw

Basic Form Filling

from pypdf import PdfReader, PdfWriter

def fill_form(input_path, output_path, field_data):
    reader = PdfReader(input_path)
    writer = PdfWriter()
    
    # Clone the original PDF
    writer.clone_document_from_reader(reader)
    
    # Fill form fields
    for page in writer.pages:
        writer.update_page_form_field_values(page, field_data)
    
    # Save the filled PDF
    with open(output_path, "wb") as f:
        writer.write(f)

Supported Field Types

  • Text fields
  • Checkboxes
  • Radio buttons
  • Dropdown lists

Tips

  1. Use scripts/analyze_form.py to discover available fields
  2. Field names are case-sensitive
  3. Always verify output after filling

Source: SKILL.md on GitHub

No alerts14d3 checks · Risk SAFE
  • Gen Agent Trust Hub14d

    The skill provides standard utilities for processing PDF documents, including text extraction, form filling, and merging. No malicious patterns or security vulnerabilities were detected.

  • Socket14d

    No alerts

  • Snyk14d

    Risk: LOW · No issues

Signed by skilld at 33f7e7d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 8 months ago

README badge

README badge for tencent/weknora/pdf-processing