Skip to content

onecib/pdf-generator-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Othmane Necib
Aug 17, 2016
6ca4368 · Aug 17, 2016

History

2 Commits
Aug 17, 2016
Aug 17, 2016
Aug 17, 2016
Aug 17, 2016
Aug 17, 2016
Aug 17, 2016
Aug 17, 2016
Aug 17, 2016
Aug 17, 2016
Aug 17, 2016

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

Watchers

Forks

Releases

No releases published

Packages

No packages published