An open API service indexing awesome lists of open source software.

https://github.com/jwodder/pdfcalendar

Python program for creating a multiyear calendar PDF document
https://github.com/jwodder/pdfcalendar

calendar pdf python year

Last synced: 8 days ago
JSON representation

Python program for creating a multiyear calendar PDF document

Awesome Lists containing this project

README

          

|repostatus| |ci-status| |license|

.. |repostatus| image:: https://www.repostatus.org/badges/latest/concept.svg
:target: https://www.repostatus.org/#concept
:alt: Project Status: Concept – Minimal or no implementation has been done
yet, or the repository is only intended to be a limited example,
demo, or proof-of-concept.

.. |ci-status| image:: https://github.com/jwodder/pdfcalendar/actions/workflows/test.yml/badge.svg
:target: https://github.com/jwodder/pdfcalendar/actions/workflows/test.yml
:alt: CI Status

.. |license| image:: https://img.shields.io/github/license/jwodder/pdfcalendar.svg
:target: https://opensource.org/licenses/MIT
:alt: MIT License

`GitHub `_
| `Issues `_

``pdfcalendar`` is a Python program for producing a PDF document containing
calendars for one or more years. Currently, the following output styles are
supported:

- A page containing five annual calendars, each laid out in a column of weeks,
starting with the current year; `example `_

- A page containing one annual calendar for the current year with the months
laid out in three rows of four each; `example `_

Installation
============
``pdfcalendar`` requires Python 3.12 or higher. Just use `pip
`_ for Python 3 (You have pip, right?) to install it::

python3 -m pip install git+https://github.com/jwodder/pdfcalendar.git

Usage
=====

::

pdfcalendar {columns|three-by-four} []

Produce a PDF document at ```` containing calendars for one or more
years in the given output style. The month names and weekday abbreviations
used are determined based on the current locale settings.

Options
-------

--font-name FONT Set the name of the font to use for the text
[default: Times-Roman]

--font-size INT Set the size of the font to use for the text
[default: 10 for ``columns``, 14 for
``three-by-four``]