Python tool to auto-generate product hero images by overlaying brand and size text onto PDF templates.
Retail marketing teams need hero images for product listings — branded PDFs with product name, size, and variant information placed precisely on a template. This tool automates that process by inserting text at exact coordinates on PDF templates using PyMuPDF.
- Opens a PDF template and overlays text (e.g., brand name, pack size) at specified coordinates
- Text is centered within defined bounding boxes using configurable font size and style
- Supports multiple text fields with independent positioning
- Outputs a new PDF with all text applied
- PyMuPDF (
fitz) — PDF manipulation
python Generic_PDF_Textbox_Paster-2.pyEdit the script to set your input PDF path, output path, text content, and coordinate values.