본문으로 건너뛰기
Skillpedia
PDF, Word, 슬라이드80k · #1718

pdf

하는 일

이 스킬은 흔한 PDF 작업을 돕습니다. PDF를 읽거나, 만들거나, 여러 개를 하나로 합쳐야 하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트에게 PDF 파일의 텍스트를 읽히거나 요약하고 싶을 때.
  • ✓여러 PDF 문서를 하나의 파일로 합쳐야 할 때.
  • ✓작성된 문서나 웹 페이지로 PDF를 만들고 싶을 때.

스킬 링크

https://github.com/shareAI-lab/learn-claude-code/blob/main/skills/pdf/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/shareAI-lab/learn-claude-code/blob/main/skills/pdf/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 PDF 계약서를 읽고 결제 조항의 텍스트를 뽑아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 일반적인 PDF 도구로 파일에서 텍스트를 뽑아내고, Markdown, HTML, 코드에서 새 PDF를 만드는 다른 도구를 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

PDF Processing Skill

You now have expertise in PDF manipulation. Follow these workflows:

Reading PDFs

Option 1: Quick text extraction (preferred)

# Using pdftotext (poppler-utils)
pdftotext input.pdf -  # Output to stdout
pdftotext input.pdf output.txt  # Output to file

# If pdftotext not available, try:
python3 -c "
import fitz  # PyMuPDF
doc = fitz.open('input.pdf')
for page in doc:
    print(page.get_text())
"

Option 2: Page-by-page with metadata

import fitz  # pip install pymupdf

doc = fitz.open("input.pdf")
print(f"Pages: {len(doc)}")
print(f"Metadata: {doc.metadata}")

for i, page in enumerate(doc):
    text = page.get_text()
    print(f"--- Page {i+1} ---")
    print(text)

Creating PDFs

Option 1: From Markdown (recommended)

# Using pandoc
pandoc input.md -o output.pdf

# With custom styling
pandoc input.md -o output.pdf --pdf-engine=xelatex -V geometry:margin=1in

Option 2: Programmatically

from reportlab.lib.pagesizes import letter
from reportlab.pdfgen import canvas

c = canvas.Canvas("output.pdf", pagesize=letter)
c.drawString(100, 750, "Hello, PDF!")
c.save()

Option 3: From HTML

# Using wkhtmltopdf
wkhtmltopdf input.html output.pdf

# Or with Python
python3 -c "
import pdfkit
pdfkit.from_file('input.html', 'output.pdf')
"

Merging PDFs

import fitz

result = fitz.open()
for pdf_path in ["file1.pdf", "file2.pdf", "file3.pdf"]:
    doc = fitz.open(pdf_path)
    result.insert_pdf(doc)
result.save("merged.pdf")

Splitting PDFs

import fitz

doc = fitz.open("input.pdf")
for i in range(len(doc)):
    single = fitz.open()
    single.insert_pdf(doc, from_page=i, to_page=i)
    single.save(f"page_{i+1}.pdf")

Key Libraries

Task Library Install
Read/Write/Merge PyMuPDF pip install pymupdf
Create from scratch ReportLab pip install reportlab
HTML to PDF pdfkit pip install pdfkit + wkhtmltopdf
Text extraction pdftotext brew install poppler / apt install poppler-utils

Best Practices

  1. Always check if tools are installed before using them
  2. Handle encoding issues - PDFs may contain various character encodings
  3. Large PDFs: Process page by page to avoid memory issues
  4. OCR for scanned PDFs: Use pytesseract if text extraction returns empty
자주 묻는 질문

PDF 파일을 합칠 수 있나요?

네. 여러 PDF 파일을 하나로 합치는 방법이 포함되어 있습니다.

어떤 도구를 설치해야 하나요?

방법에 따라 poppler, pandoc, wkhtmltopdf 같은 도구가 필요할 수 있습니다.

웹 페이지에서 PDF를 만들 수 있나요?

네. wkhtmltopdf를 써서 HTML을 PDF로 변환할 수 있습니다.

상세 정보

작성자의 원본 설명

Process PDF files - extract text, create PDFs, merge documents. Use when user asks to read PDF, create PDF, or work with PDF files.

repo: shareAI-lab/learn-claude-code

인기도

GitHub 스타
80k
순위
#1718
라이선스
MIT
업데이트
2026. 10. 27.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬