Skip to content

Gaboso/CalculaOras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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