Chuyển đến nội dung
Skillpedia
PDF, Word và slide28k · #9859

pdf

Skill này làm gì

Skill này giúp xử lý file PDF, gồm tạo file mới và kiểm tra cách chúng hiển thị. Nó dành cho người cần PDF được tạo hoặc đọc chính xác, với bố cục được kiểm tra.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo một PDF mới với định dạng đáng tin cậy.
  • ✓Khi bạn cần đọc hoặc xem xét một PDF mà bố cục và hình ảnh có ý nghĩa.
  • ✓Khi bạn muốn kiểm tra trực quan một PDF đã hoàn thành trước khi gửi đi.

Liên kết skill

https://github.com/openai/skills/blob/main/skills/.curated/pdf/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/openai/skills/blob/main/skills/.curated/pdf/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một bản tóm tắt PDF một trang từ báo cáo này, và kiểm tra bố cục có đúng trước khi tôi gửi đi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent hiển thị các trang PDF thành hình ảnh để kiểm tra, dùng công cụ Python để tạo hoặc trích xuất nội dung, và kiểm tra lại mỗi thay đổi cho đến khi bố cục đúng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

PDF Skill

When to use

  • Read or review PDF content where layout and visuals matter.
  • Create PDFs programmatically with reliable formatting.
  • Validate final rendering before delivery.

Workflow

  1. Prefer visual review: render PDF pages to PNGs and inspect them.
    • Use pdftoppm if available.
    • If unavailable, install Poppler or ask the user to review the output locally.
  2. Use reportlab to generate PDFs when creating new documents.
  3. Use pdfplumber (or pypdf) for text extraction and quick checks; do not rely on it for layout fidelity.
  4. After each meaningful update, re-render pages and verify alignment, spacing, and legibility.

Temp and output conventions

  • Use tmp/pdfs/ for intermediate files; delete when done.
  • Write final artifacts under output/pdf/ when working in this repo.
  • Keep filenames stable and descriptive.

Dependencies (install if missing)

Prefer uv for dependency management.

Python packages:

uv pip install reportlab pdfplumber pypdf

If uv is unavailable:

python3 -m pip install reportlab pdfplumber pypdf

System tools (for rendering):

# macOS (Homebrew)
brew install poppler

# Ubuntu/Debian
sudo apt-get install -y poppler-utils

If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.

Environment

No required environment variables.

Rendering command

pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX

Quality expectations

  • Maintain polished visual design: consistent typography, spacing, margins, and section hierarchy.
  • Avoid rendering issues: clipped text, overlapping elements, broken tables, black squares, or unreadable glyphs.
  • Charts, tables, and images must be sharp, aligned, and clearly labeled.
  • Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.
  • Citations and references must be human-readable; never leave tool tokens or placeholder strings.

Final checks

  • Do not deliver until the latest PNG inspection shows zero visual or formatting defects.
  • Confirm headers/footers, page numbering, and section transitions look polished.
  • Keep intermediate files organized or remove them after final approval.
Câu hỏi thường gặp

Nó dùng những công cụ nào?

Nó dựa vào các công cụ Python như reportlab, pdfplumber và pypdf, cùng Poppler để hiển thị trang.

Trích xuất văn bản có đủ để kiểm tra PDF không?

Không. Skill nói rằng trích xuất văn bản không đáng tin cậy về bố cục, nên nó hiển thị trang để kiểm tra bằng mắt.

Tôi có cần cài đặt gì không?

Một số công cụ có thể cần cài đặt, gồm Poppler để hiển thị, và skill sẽ báo cho bạn nếu thiếu thứ gì.

Chi tiết

Mô tả gốc của tác giả

Use when tasks involve reading, creating, or reviewing PDF files where rendering and layout matter; prefer visual checks by rendering pages (Poppler) and use Python tools such as `reportlab`, `pdfplumber`, and `pypdf` for generation and extraction.

repo: openai/skills

Độ phổ biến

Sao GitHub
28k
Vị trí xếp hạng
#9859
Giấy phép
—
Cập nhật
28/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự