Community코딩 & 개발github.com

claude-office-skills/pdf-watermark

PDF에 워터마크, 페이지 번호, 머리글, 바닥글을 추가합니다.

pdf-watermark란 무엇인가요?

이 스킬은 PDF 문서에 워터마크, 페이지 번호, 머리글, 바닥글을 프로그래밍 방식으로 추가할 수 있게 해줍니다. 개발자나 AI 에이전트(예: Claude Code, Codex)가 PDF 처리 워크플로우에 이 스킬을 통합하여 문서에 맞춤형 오버레이를 적용할 수 있습니다. 텍스트 또는 이미지 기반 워터마크, 사용자 정의 가능한 머리글/바닥글, 페이지 번호 매기기 등 다양한 옵션을 지원합니다. 이 스킬은 Python의 PyMuPDF(fitz) 라이브러리를 활용하여 효율적으로 PDF를 조작하며, 대부분의 주요 AI 에이전트 플랫폼에서 사용할 수 있습니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/claude-office-skills/skills/tree/main/skills/pdf-watermark

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

pdf-watermark은(는) 무엇을 하나요?

PDF에 워터마크, 페이지 번호, 머리글, 바닥글을 추가합니다.

개요

이 스킬은 PDF 문서에 다양한 오버레이를 추가하는 기능을 제공합니다:

  • 워터마크: 텍스트 또는 이미지 기반 워터마크를 페이지에 추가합니다.
  • 페이지 번호: 문서의 각 페이지에 페이지 번호를 추가합니다.
  • 머리글: 각 페이지 상단에 사용자 정의 텍스트를 추가합니다.
  • 바닥글: 각 페이지 하단에 사용자 정의 텍스트를 추가합니다.

사용법

이 스킬을 사용하려면 요청을 적절한 형식으로 전송하세요:

POST /watermark
Content-Type: application/json

{
  "input": {
    "pdf": "base64_encoded_pdf_content",
    "config": {
      "type": "watermark",
      "text": "기밀",
      "opacity": 0.3,
      "rotation": 45
    }
  }
}

구성 옵션

파라미터유형기본값설명
type문자열watermark추가할 오버레이 유형 (watermark, page_number, header, footer)
text문자열""표시할 텍스트 (워터마크, 머리글, 바닥글)
opacity숫자0.5워터마크의 불투명도 (0.0 ~ 1.0)
rotation숫자0워터마크의 회전 각도 (도)
font_size숫자24텍스트의 글꼴 크기
color문자열"#000000"텍스트의 색상 (헥스값)
position문자열"center"오버레이 위치 (center, top_left, top_right, bottom_left, bottom_right, header, footer)

예시

텍스트 워터마크 추가

import requests
import base64

with open('document.pdf', 'rb') as f:
    pdf_content = base64.b64encode(f.read()).decode('utf-8')

response = requests.post('http://localhost:8000/watermark', json={
    'input': {
        'pdf': pdf_content,
        'config': {
            'type': 'watermark',
            'text': '초안',
            'opacity': 0.4,
            'rotation': 45,
            'font_size': 48
        }
    }
})

with open('watermarked.pdf', 'wb') as f:
    f.write(base64.b64decode(response.json()['output']['pdf']))

페이지 번호 추가

import requests
import base64

with open('document.pdf', 'rb') as f:
    pdf_content = base64.b64encode(f.read()).decode('utf-8')

response = requests.post('http://localhost:8000/watermark', json={
    'input': {
        'pdf': pdf_content,
        'config': {
            'type': 'page_number',
            'position': 'bottom_right',
            'font_size': 10
        }
    }
})

with open('numbered.pdf', 'wb') as f:
    f.write(base64.b64decode(response.json()['output']['pdf']))

머리글 및 바닥글 추가

curl -X POST http://localhost:8000/watermark \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "pdf": "$(base64 -w0 input.pdf)",
      "config": {
        "type": "header",
        "text": "기밀 문서",
        "font_size": 14,
        "color": "#FF0000"
      }
    }
  }'

종속성

  • Python 3.8+
  • PyMuPDF (fitz)
  • requests (REST API 호출 시)

구현 세부사항

이 스킬은 PDF 조작에 PyMuPDF 라이브러리를 사용합니다. 워터마크를 추가할 때:

  1. 원본 PDF가 메모리에 로드됩니다.
  2. 각 페이지에 대해 지정된 구성에 따라 오버레이가 생성됩니다.
  3. 오버레이는 투명도와 회전을 적용하여 페이지에 그려집니다.
  4. 수정된 PDF가 반환됩니다.

환경 변수

변수명설명기본값
PDF_WATERMARK_SERVER_PORTAPI 서버 포트8000
PDF_WATERMARK_MAX_FILE_SIZE_MB최대 파일 크기 (MB)50

주의사항

  • PDF 파일 크기는 환경 변수로 설정된 제한을 초과하면 안 됩니다.
  • 워터마크 텍스트에는 유니코드 문자를 사용할 수 있습니다.
  • 이미지 기반 워터마크의 경우 Base64로 인코딩된 이미지 데이터가 필요합니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

claude-office-skills/academic-search

Search and analyze academic literature. Find papers, understand research methodologies, and synthesize academic findings for research projects.

claude-office-skills/ads-copywriter

Multi-platform ad copy generation for Google Ads, Meta/Facebook, TikTok, LinkedIn with A/B testing variants

claude-office-skills/ai-agent-builder

Build AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns

claude-office-skills/airtable-automation

Airtable database automation - views, automations, integrations, and workflow triggers

claude-office-skills/ai-slides

Generate complete presentations with AI - from outline to polished slides

claude-office-skills/amazon-seller

Automate Amazon seller operations including inventory, orders, pricing, and advertising management

claude-office-skills/apple-shortcuts-integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows

claude-office-skills/applicant-screening

Screen job applications against requirements and score candidates

claude-office-skills/asana-automation

Automate Asana project management workflows, task tracking, team collaboration, and reporting

claude-office-skills/batch-convert

Batch convert documents between multiple formats using a unified pipeline

claude-office-skills/batch-processor

Process multiple documents in bulk with parallel execution

claude-office-skills/brand-guidelines-generator

Create and maintain brand style guides for consistent visual identity

claude-office-skills/browser-automation

Automate web browser interactions, scraping, testing, and workflow automation with Puppeteer/Playwright

claude-office-skills/calendar-automation

Google Calendar and Outlook automation - scheduling optimization, meeting workflows, time blocking, and Slack/Sheets integration

claude-office-skills/changelog-generator

Generate release notes from git commits, updates, or feature lists

claude-office-skills/chart-designer

Design effective data visualizations and charts. Generate chart configurations for ECharts, Chart.js, and other libraries. Create dashboards and reports.

claude-office-skills/chat-with-pdf

Answer questions about PDF content, summarize, and extract information

claude-office-skills/clickup-automation

Automate ClickUp workspace management, task workflows, time tracking, and team productivity

claude-office-skills/company-research

Conduct comprehensive company research and due diligence. Analyze business model, competitive landscape, management, and market position.

claude-office-skills/competitive-analysis

Analyze competitors systematically. Compare products, features, pricing, positioning, and market strategies. Generate comprehensive competitive intelligence reports.

관련 스킬