GitHunt
TE

tecknicaltom/python-planner

PDF Planner generated with Python

Python Planner

After searching for a PDF weekly planner for my iPad I decided to try and create one with python.

I made a repo instead of just posting the PDF so if desired users can modify the code and create a modified planner that suits their needs better

Options/Settings

There are a few variables early in the code that can be adjusted to change the calendar

Variable Description
YEAR Year to base the planner on
include_mini_cal Whether to include a calendar of the month in the bottom right corner of each page
extra_rows_monday How many extra rows to include for the first day of the week (Monday)
rows_per_day How many lines to have in each day. The size of each day is based of the padding variables and the page size.

PDF Library

Implemented

I ended up choosing FPDF because it seemed to have the best documentation.
I was able to perform all desired operations fairly simply with it, so I am happy with the choice.

Considered

  • pyPdf - Doesn't seem to have recent documentation
  • PyPDF2 - Contains a class labeled PdfFileWriter
  • PyPDF4 - Doesn't appear to have any documentation
  • FPDF
  • ReportLab - Definitely has ability to create PDFs
  • pdfrw - seems to be more based around editing rather than creating
  • PDFMiner - "PDFMiner is a text extraction tool for PDF documents."

Languages

Python100.0%

Contributors

Created January 6, 2024
Updated January 6, 2024
tecknicaltom/python-planner | GitHunt