Documents

Pdf Power

Try it

PDF toolkit: extract, merge, split, compress, convert, watermark, and protect PDFs.

What it does

PDF toolkit: extract, merge, split, compress, convert, watermark, and protect PDFs.

The skill document

PDF Power 🦁

Complete PDF toolkit. Extract text, merge documents, split pages, compress files, convert formats, add watermarks, and protect with passwords.

Dependencies

The skill uses Python with pypdf + PyMuPDF (fitz). Install on first use:

pip install pypdf PyMuPDF Pillow

Operations

📄 Extract Text

Read all text from a PDF. Clean output, preserves paragraph structure.

🔗 Merge PDFs

Combine multiple PDFs into one file. Maintains page order.

✂️ Split PDF

Split a PDF by page ranges or extract specific pages.

📦 Compress PDF

Reduce file size. Offers two levels: light (fast, minimal loss) and heavy (smaller, may reduce quality).

🖼️ Convert PDF to Images

Convert each page to PNG/JPEG image. Useful for previews or presentations.

🖼️ Extract Images

Extract embedded images from PDF pages. Saves to output folder.

💧 Watermark

Add text or image watermark to every page. Configurable opacity and position.

🔒 Protect / Unprotect

Add or remove password protection on PDF files.

Usage Pattern

  1. Identify the PDF path and desired operation.
  2. Run the appropriate Python script.
  3. Output file is saved beside the input file (or in specified output path).
  4. Confirm result with the user.

Output

  • Text extraction → clean text content
  • Merge/Split/Compress/Protect → PDF file
  • Convert to images → folder of image files
  • Extract images → folder of image files
  • Watermark → watermarked PDF

Critical Rules

  • Never overwrite the original file unless user explicitly asks. Append _output to output filename.
  • For large PDFs (>100 pages), warn the user and ask before proceeding.
  • Validate PDF is not corrupted before processing.
  • For password-protected PDFs, ask for the password upfront.
  • Use pypdf for simple operations (merge, split, compress). Use PyMuPDF for rendering and image extraction.
  • Compress only when user asks — don't compress silently.

Gostou desta skill? Deixe uma estrela no ClawHub para ajudar outros a encontrá-la!

Related skills

pdf to video, pdf to explainer video, pdf to presentation video — parse the PDF, outline, storyboard, voiceover, build, validate. Use when the user gives a PDF and wants an explainer, report broadcast, courseware, or training video.

综合PDF处理工具包:文本表格提取、PDF创建、合并拆分、水印、加密、OCR识别。Use when 需要文件处理、文档转换、格式互转、内容提取时使用。不适用于加密文件破解。适用于独立开发者、企业团队和自动化工作流场景。支持中文交互,无需复杂配置即开即用。输出结果可直接使用,减少二次加工成本。提供结构化输出和错误处理机制。

1 installs

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multipl...

3 installs

Convert PDF and image files into 10 document and data formats, with OCR and layout controls.

by ComPDF32 installs95 stars