Skip to content

Reggie-Reuss/Hero-Img

Repository files navigation

Hero-Img

Python tool to auto-generate product hero images by overlaying brand and size text onto PDF templates.

What It Does

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.

How It Works

  • 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

Dependencies

  • PyMuPDF (fitz) — PDF manipulation

Usage

python Generic_PDF_Textbox_Paster-2.py

Edit the script to set your input PDF path, output path, text content, and coordinate values.

About

Python tool to auto-generate product hero images by overlaying text onto PDF templates (PyMuPDF)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages