πŸ“„

PDF Split

Burst a large PDF into individual pages or extract specific page ranges.

Document ⭐ Beginner ⏱️ 3 minutes

😫 The Pain Point

You have a 50-page scanned document. You only need to email pages 5 and 10 to a client. Sending the whole 50MB file is confusing and unprofessional.

πŸš€ Agentic Solution

The Scissors: Precision extraction of pages.

Key Features:

  • Range Support: β€œ1, 3, 5-10” syntax support.
  • Burst: Explode a 100-page book into 100 single-page files.

βš”οΈ Phase 1: Commander (Quick Fix)

For extracting a section.

Prompt:

β€œExtract pages 1, 3, and 5-10 from book.pdf. Save them as a new file extracted.pdf.”

Result: A smaller, focused PDF.

πŸ—οΈ Phase 2: Architect (Permanent Tool)

For Archivists.

Engineering Prompt:

**Role:** Python Tool Developer
**Task:** Create a "PDF Splitter" Tool.
**Requirements:**
1.  **GUI:**
    *   Select Input PDF.
    *   Option: "Split All Pages" (Burst).
    *   Option: "Extract Range" (Input: "1,3,5-10").
    *   "Process" button.
2.  **Logic:**
    *   Parse the range string (handle commas and hyphens).
    *   Create `PdfWriter`.
    *   Add selected pages.
    *   Save.
3.  **Deliverables:** `pdf_split.py`, `run.bat` (Windows), `run.sh` (Mac).

🧠 Prompt Decoding

  • Range Parsing: Teaching the code to understand β€œ5-10” means β€œ5, 6, 7, 8, 9, 10” is a classic logic problem. The AI generates a parser to handle this human-friendly syntax.

πŸ› οΈ Instructions

  1. Copy Prompt -> Paste -> Run.
  2. Select PDF -> Enter Range -> Cut.

Related Workflows

Explore other categories

πŸ“¬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

πŸ“– Free eBook Guide πŸ“¦ 7 Ready-to-use Scripts πŸ”” Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.