๐Ÿ“„

Rotate PDF Pages

Rotate specific pages or all pages in a PDF document.

Document โญ Beginner โฑ๏ธ 2 minutes

๐Ÿ˜ซ The Pain Point

A scanned document has some pages oriented incorrectly - landscape pages mixed with portrait. You need to rotate specific pages without affecting others.

๐Ÿš€ Agentic Solution

A Page Rotator that fixes orientation issues with surgical precision.

Key Features:

  • Selective Rotation: Rotate only specific page numbers.
  • Multiple Angles: 90ยฐ, 180ยฐ, 270ยฐ options.
  • Batch Mode: Fix multiple PDFs at once.

โš”๏ธ Phase 1: Commander (Quick Fix)

For quick fixes.

Prompt:

โ€œI have a PDF document.pdf. Write a Python script using pypdf to:

  1. Rotate: Pages 3, 5, 7-10 by 90ยฐ clockwise.
  2. Output: Save as document_rotated.pdf.

Accept page range syntax (e.g., โ€˜3,5,7-10โ€™). Support angles: 90, 180, 270.โ€

Result: Properly oriented document.

๐Ÿ—๏ธ Phase 2: Architect (Permanent Tool)

For Administrative Staff.

Engineering Prompt:

**Role:** Python Tool Developer
**Task:** Create a "PDF Rotation Tool".

**Requirements:**
1.  **GUI:**
    *   Select PDF.
    *   Page thumbnails with current orientation.
    *   Click to toggle rotation (90ยฐ per click).
    *   "Rotate All" with angle dropdown.
    *   "Save" button.

2.  **Logic:**
    *   Use pypdf page.rotate().
    *   Preserve other page properties.
    *   Handle encrypted PDFs.

3.  **Deliverables:**
    *   `pdf_rotate.py`
    *   `run.bat`, `run.sh`
    *   `requirements.txt`

๐Ÿง  Prompt Decoding

  • Clockwise vs Counter-clockwise: Standard convention is positive = clockwise.

๐Ÿ› ๏ธ Instructions

  1. Copy Prompt โ†’ Run.
  2. Specify pages and angle.

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.