Skip to content

Reggie-Reuss/lesson-plan-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Lesson Plan Generator

Python tool to auto-populate lesson plan PDFs with grade, subject, and topic text.

What It Does

Takes a lesson plan PDF template and overlays grade level, subject area, and topic text at specified coordinates. Handles dynamic font sizing — longer topic names automatically scale down to fit within the bounding box.

How It Works

  • Opens a PDF template and inserts grade, subject, and topic text at defined coordinates
  • Font size adapts based on text length:
    • 15 characters or fewer: 18pt
    • 16–20 characters: 16pt
    • 21–25 characters: 12pt
    • 26–40 characters: 8pt
    • 41+ characters: 6pt
  • Outputs a new PDF with all fields populated

Dependencies

  • PyMuPDF (fitz) — PDF manipulation

Usage

python "Testing Subject Name.py"

Edit the script to set your input PDF path, output path, and text values for grade, subject, and topic.

About

Python tool to auto-populate lesson plan PDFs with grade, subject, and topic text (PyMuPDF)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages