Skip to content

SchunterKino/FlyerTools

Repository files navigation

Flyer Tools

A collection of scripts to generate the SchunterKino flyers.

Dependencies

Install Python dependencies once:

pip install -r requirements.txt

Flyer Generator

Generates multiple SVG flyers by transforming a template. Resources (paths to images, texts, etc.) are given as a JSON file.

Usage

Simple:

python flyer_generator.py program.json

Choosing a different template file:

python flyer_generator.py -t template.svg program.json

Changing the output directory:

python flyer_generator.py -o flyers program.json

Overwriting existing files:

python flyer_generator.py -f program.json

Print Version

Generates a A4 two page layout PDF from a A5 flyer SVG. Suitable for black and white printing (no background)

Notice

Requires Inkscape v0.91+. Also due to how Inkscapes command line tool interacts with the GUI, the dropdown menu in "Align and Distribute" (ctrl+shift+A) must be set to "Relative to: Page" or the result will be incorrect.

Usage

This will create the file "Flyer - Druck.pdf":

./print_version.sh Flyer.svg

To create the PDFs for all flyers in a folder:

./print_version.sh flyers/*.svg

Program generator

Generates a single overview SVG flyer from a JSON file and a template.

Usage

Simple:

python program_generator.py program.json

Choosing a different template file:

python program_generator.py -t template_overview.svg program.json

Changing the output file:

python program_generator.py -o program.svg program.json

Overwriting existing files:

python program_generator.py -f program.json

Releases

No releases published

Packages

No packages published