Skip to content

navix14/calendar-generator-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calendar PDF Generator

This tool was created to easily generate and print refills for your calendar/planner yourself. It comes with two premade templates, one for a single page A4 layout, and a double sided A5 layout.

It outputs a single merged PDF file result.pdf containing all pages in the correct printing order.

Building

This project was built using .NET 6.0 Core. For building the following NuGet dependencies are needed:

  • PdfSharp
  • System.Text.Encoding.CodePages

To build, simply execute the following command:

dotnet build

The corresponding executable calendar.exe will be in the bin directory.

Usage

We use a very simplistic approach to PDF generation. So far, there was no need to integrate a fully-fledged templating engine, nor a dedicated library for programmatic PDF generation (such as QuestPDF). Instead, the templates are written using normal HTML/CSS with specific placeholders that are to be replaced. For this, we use a helper tool wkhtmltopdf that stems the actual HTML -> PDF conversion.

It is therefore required to have the wkhtmltopdf binaries included in your PATH environment variable.

Usage is then very simple: Simply pick the wanted year and a format/template that is to be generated and hit Generate.

Template previews

Todos

  • Add more default templates
  • Use batch mode PDF generation to significantly speed up the process

About

Generate Filofax inspired calendars/planners easily

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages