Giter Club home page Giter Club logo

print-o-matic's Introduction

print-o-matic

Fill out any PDF you want, automated!

Prerequisites

Install the needed Python 3 packages:

pip3 install -r requirements.txt

Single document

To only fill one form, use the following command:

./fill-form.py geldzuwendung name="Max Mustermann" street="Musterstraße 123" city="12345 Musterstadt" date="31.12.2020" amount="42.23"

This will fill in the document configured in config/geldzuwendung for Max Mustermann at the given address and date. The spenden amount translates to 42,23€. Do not omit the double ticks.

Batch creation

For filling out multiple documents, fill in the file csv/geldzuwendung.csv and afterwards use the bundled shell script like so:

./batch.sh

This will create a directory called output inside the working directory, where you will find all the created documents.

Batch printing

To print all the documents with the default printer use the following command:

lpr output/*.pdf

This requires CUPS to be installed. If you get an error about no default printer being set, please consult this help page.

Custom documents

Have a look at the config directory. The files within should speak for themselves enough to let you create your own configs.

print-o-matic's People

Contributors

flxai avatar dependabot[bot] avatar icks avatar malled2002 avatar ansvonwa avatar soerface avatar elektro-wolle avatar

Stargazers

Robin avatar  avatar

Watchers

James Cloos avatar  avatar Daniel Huhn avatar  avatar  avatar  avatar  avatar

Forkers

elektro-wolle

print-o-matic's Issues

Implement support for multi-page documents

Because there is currently none.

A demo command to create a single paged document, which should have multiple:

./fill-form.py geldzuwendung-sammel name="Max Mustermann" street="Musterstraße 123" city="12345 Musterstadt" date="31.12.2020" amount="42.23"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.