Skip to content

About

A javascript pdf generator

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

pdf generator script

Usage

Setup

git clone https://github.com/webcore-it/pdf-generator-script.git
cd pdf-generator-script
npm install

Run

The script takes an invoice id as first args parameter. Possible test invoice ids are 42 and 666 (dummy data can be found in /services/data.service.js).

To generate a pdf run:

# Generates a pdf invoice in the files folder:
node app.js 42

To get error messages run:

# Invalid invoice data:
node app.js 666
# No invoice found:
node app.js 1337
# Invalid invoice id:
node app.js oneTwoThree

Tests

Test are writen as jasmine spec files. So jasmine must be installed to be able to run the tests (npm install -g jasmine).

# Run the tests:
jasmine

About

A javascript pdf generator

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages