本文へスキップ
Skillpedia
PDF・Word・スライド28k · #9859

pdf

できること

このスキルは、新しいPDFの作成や見た目の確認を含め、PDFファイルを扱います。正確に作成または読み取る必要があり、レイアウトを確かめたい人向けです。

使う場面

  • ✓書式が整ったPDFを新しく作りたいとき。
  • ✓レイアウトや図版が重要なPDFを読んだり見直したりする必要があるとき。
  • ✓送付する前に、完成したPDFの見た目を目で確認したいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/openai/skills/blob/main/skills/.curated/pdf/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このレポートを1ページのPDFにまとめてください。送る前にレイアウトが正しいか確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはPDFのページを画像にして見た目を確認し、Pythonのツールで内容を作成または抽出します。変更するたびに、レイアウトが整うまで再確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.
よくある質問

どのツールを使いますか?

reportlab、pdfplumber、pypdfなどのPythonツールを使います。ページの描画にはPopplerを使います。

テキストの抽出だけで確認は十分ですか?

いいえ。テキストの抽出ではレイアウトを確かめられないため、このスキルはページを画像にして目で確認します。

何かインストールが必要ですか?

一部のツールはインストールが必要です。描画用のPopplerも含まれ、不足している場合はその旨を伝えます。

詳細

作者による元の説明

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

人気

GitHubのスター
28k
ランキング
#9859
ライセンス
—
更新日
2026/10/28

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル