π« The Pain Point
You designed a menu in Illustrator and saved it as PDF. You want to post it on Facebook, but Facebook only accepts images (JPG). Taking a screenshot of the PDF makes it blurry.
π Agentic Solution
Renderer: Converts vector text to pixel-perfect images at high DPI.
Key Features:
- High DPI: 300 DPI for print-quality sharpness.
- Format: PNG for transparency, JPG for web.
βοΈ Phase 1: Commander (Quick Fix)
For a quick convert.
Prompt:
βConvert
menu.pdfto high-quality JPGs (300dpi). Save inside an βOutputβ folder.β
Result: Crisp images ready for social media.
ποΈ Phase 2: Architect (Permanent Tool)
For Designers/Marketers.
Engineering Prompt:
**Role:** Python Graphics Developer
**Task:** Create a "PDF to Image Converter".
**Requirements:**
1. **Dependency:** Requires `poppler` installed.
2. **GUI:**
* Select Input PDF.
* Select Format (JPG/PNG).
* Select Quality/DPI (Screen/Print).
* "Convert" button.
3. **Logic:**
* Use `pdf2image.convert_from_path(dpi=...)`.
* Save pages as `Page_1.jpg`, etc.
4. **Deliverables:** `pdf_to_img.py`, `run.bat` (Windows), `run.sh` (Mac).
π§ Prompt Decoding
- Poppler:
pdf2imageis just a wrapper around thepopplertool. If the user doesnβt havepopplerinstalled on their system path, this will fail. The prompt alerts the engineer to this dependency.
π οΈ Instructions
- Install Poppler.
- Copy Prompt -> Paste -> Run.
- Select PDF -> Convert.