하는 일
이 도구는 PDF 파일 작업을 도와줍니다. 텍스트를 추출하고, 여러 PDF를 하나로 합치고, PDF를 작은 부분으로 나누고, 양식을 작성하고, 처음부터 새 PDF를 만들 수 있습니다.
사용하는 경우
- ✓PDF에서 텍스트를 꺼내 다른 곳에서 쓰고 싶을 때.
- ✓여러 PDF 문서를 하나의 파일로 합치고 싶을 때.
- ✓긴 PDF를 여러 개의 작은 파일로 나눠야 하는 경우.
스킬 링크
https://github.com/ComposioHQ/awesome-claude-skills/blob/master/document-skills/pdf/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 PDF 두 개를 하나로 합쳐 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 도구는 PDF 파일을 읽고 수정하는 방법을 아는 컴퓨터 프로그램을 사용합니다. 합치기나 텍스트 추출처럼 원하는 작업을 말하면, 그 지침에 따라 PDF 파일을 만들거나 바꿉니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
PDF Processing Guide
Overview
This guide covers essential PDF processing operations using Python libraries and command-line tools. For advanced features, JavaScript libraries, and detailed examples, see reference.md. If you need to fill out a PDF form, read forms.md and follow its instructions.
Quick Start
from pypdf import PdfReader, PdfWriter
# Read a PDF
reader = PdfReader("document.pdf")
print(f"Pages: {len(reader.pages)}")
# Extract text
text = ""
for page in reader.pages:
text += page.extract_text()
Python Libraries
pypdf - Basic Operations
Merge PDFs
from pypdf import PdfWriter, PdfReader
writer = PdfWriter()
for pdf_file in ["doc1.pdf", "doc2.pdf", "doc3.pdf"]:
reader = PdfReader(pdf_file)
for page in reader.pages:
writer.add_page(page)
with open("merged.pdf", "wb") as output:
writer.write(output)
Split PDF
reader = PdfReader("input.pdf")
for i, page in enumerate(reader.pages):
writer = PdfWriter()
writer.add_page(page)
with open(f"page_{i+1}.pdf", "wb") as output:
writer.write(output)
Extract Metadata
reader = PdfReader("document.pdf")
meta = reader.metadata
print(f"Title: {meta.title}")
print(f"Author: {meta.author}")
print(f"Subject: {meta.subject}")
print(f"Creator: {meta.creator}")
Rotate Pages
reader = PdfReader("input.pdf")
writer = PdfWriter()
page = reader.pages[0]
page.rotate(90) # Rotate 90 degrees clockwise
writer.add_page(page)
with open("rotated.pdf", "wb") as output:
writer.write(output)
pdfplumber - Text and Table Extraction
Extract Text with Layout
import pdfplumber
with pdfplumber.open("document.pdf") as pdf:
for page in pdf.pages:
text = page.extract_text()
print(text)
Extract Tables
with pdfplumber.open("document.pdf") as pdf:
for i, page in enumerate(pdf.pages):
tables = page.extract_tables()
for j, table in enumerate(tables):
print(f"Table {j+1} on page {i+1}:")
for row in table:
print(row)
Advanced Table Extraction
import pandas as pd
with pdfplumber.open("document.pdf") as pdf:
all_tables = []
for page in pdf.pages:
tables = page.extract_tables()
for table in tables:
if table: # Check if table is not empty
df = pd.DataFrame(table[1:], columns=table[0])
all_tables.append(df)
# Combine all tables
if all_tables:
combined_df = pd.concat(all_tables, ignore_index=True)
combined_df.to_excel("extracted_tables.xlsx", index=False)
reportlab - Create PDFs
Basic PDF Creation
from reportlab.lib.pagesizes import letter
from reportlab.pdfgen import canvas
c = canvas.Canvas("hello.pdf", pagesize=letter)
width, height = letter
# Add text
c.drawString(100, height - 100, "Hello World!")
c.drawString(100, height - 120, "This is a PDF created with reportlab")
# Add a line
c.line(100, height - 140, 400, height - 140)
# Save
c.save()
Create PDF with Multiple Pages
from reportlab.lib.pagesizes import letter
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, PageBreak
from reportlab.lib.styles import getSampleStyleSheet
doc = SimpleDocTemplate("report.pdf", pagesize=letter)
styles = getSampleStyleSheet()
story = []
# Add content
title = Paragraph("Report Title", styles['Title'])
story.append(title)
story.append(Spacer(1, 12))
body = Paragraph("This is the body of the report. " * 20, styles['Normal'])
story.append(body)
story.append(PageBreak())
# Page 2
story.append(Paragraph("Page 2", styles['Heading1']))
story.append(Paragraph("Content for page 2", styles['Normal']))
# Build PDF
doc.build(story)
Command-Line Tools
pdftotext (poppler-utils)
# Extract text
pdftotext input.pdf output.txt
# Extract text preserving layout
pdftotext -layout input.pdf output.txt
# Extract specific pages
pdftotext -f 1 -l 5 input.pdf output.txt # Pages 1-5
qpdf
# Merge PDFs
qpdf --empty --pages file1.pdf file2.pdf -- merged.pdf
# Split pages
qpdf input.pdf --pages . 1-5 -- pages1-5.pdf
qpdf input.pdf --pages . 6-10 -- pages6-10.pdf
# Rotate pages
qpdf input.pdf output.pdf --rotate=+90:1 # Rotate page 1 by 90 degrees
# Remove password
qpdf --password=mypassword --decrypt encrypted.pdf decrypted.pdf
pdftk (if available)
…
자주 묻는 질문
PDF에서 표를 어떻게 추출하나요?
‘pdfplumber’ 도구를 사용하면 표 데이터를 목록으로 추출하거나 Excel 스프레드시트로 만들 수 있습니다.
PDF를 처음부터 만들 수 있나요?
네, ‘reportlab’ 도구로 새 PDF를 만들고 텍스트, 선, 여러 페이지를 추가할 수 있습니다.
PDF에 워터마크를 추가하려면 어떻게 하나요?
‘pypdf’ 도구를 사용하면 문서의 모든 페이지에 이미지나 다른 PDF를 워터마크로 추가할 수 있습니다.
상세 정보
작성자의 원본 설명
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
인기도
- GitHub 스타
- 77k
- 순위
- #2589
- 라이선스
- —
- 업데이트
- 2026. 9. 18.
댓글
- …
이 저장소의 다른 스킬
artifacts-builder
77k복잡한 사용자 인터페이스를 만들도록 에이전트를 돕습니다. 현대 기술을 사용해 풍부하고 상호작용이 있는 웹 페이지를 만듭니다.
brand-guidelines
77k공식 브랜드 색상과 글꼴을 자료에 적용하도록 에이전트를 돕습니다. 회사의 모습을 따라야 하는 자료의 시각 정체성을 유지하는 데 유용합니다.
canvas-design
77k.png와 .pdf 형식의 독창적인 시각 예술 작품을 만들도록 에이전트를 돕습니다. 포스터, 예술 작품, 기타 정적 디자인을 요청할 때 사용하세요.
changelog-generator
77k코드 커밋으로부터 사용자에게 보이는 출시 노트를 만들도록 에이전트를 돕습니다. 기술 정보를 이해하기 쉬운 글로 바꿉니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.