Git Product home page Git Product logo

calculaoras's Introduction

CalculaOras Awesome

It is a project to generate an absence justification sheet in PDF, and also the project itself already calculates (random) daily hours based on the informed workload.

Based on an HTML template with Thymeleaf tags, some conversions are performed using Flying Saucer, IText and JTidy to obtain a PDF file.

diagram

Config

In the resources directory, there is a config.properties file, which contains all the settings used by the application.

Property Description Example Value
minutes.workedPerDay number of minutes worked in a day 480
worker.name worker's name John Doe
worker.socialSecurity.id worker's social security number 60701020304
employer.name employer's name Fun Toys Inc.
employer.socialSecurity.id employer's social security number 60701020304050
days array of days to be used by the application, each day must be separated by a comma 01/01/2019,01/02/2019,03/02/2019
days.custom if marked as true, it will use the days property to generate the days, otherwise it will leave the days blank true
days.quantity number of days to be generated 3
days.enable.justification enable absence justification line for all days false
output.file file name to be generated test.pdf

How to build

Run the build.bat file for Windows or build.sh for Linux, both are in the root directory of this project

After execution, the file scriptum-x.x.x.jar will be generated in target directory

How to use

After build, run following command to start:

java -jar scriptum.jar

Output example:

Image of PDF

calculaoras's People

Contributors

gaboso avatar dependabot-preview[bot] avatar denisferro avatar dependabot[bot] avatar

Watchers

James Cloos avatar

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.