Version Node.js du générateur d'attestation Q4.
Instructions
Créer un fichier profile.json
sur ce modèle :
$ cat profile.json
{
"address": "15 place Vendome",
"birthday": "25/08/1930",
"city": "Paris",
"firstname": "Sean",
"lastname": "Connery",
"placeofbirth": "Edimbourg",
"zipcode": "75001",
"signature": "Bond"
}
Optionnel: créer un fichier signature.png
, par exemple avec Signature Pad.
Puis lancer le script !
$ npm install
$ npm start
$ open docs/attestation.pdf