Skip to content

Commit

Permalink
Merge pull request #7 from Rogerrrrrrrs/development
Browse files Browse the repository at this point in the history
v1.0.5
  • Loading branch information
schoero authored Mar 2, 2020
2 parents 7b7f7ee + 2599218 commit f01073e
Show file tree
Hide file tree
Showing 25 changed files with 475 additions and 70 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const SwissQRBill = require("swissqrbill");
const data = {
currency: "CHF",
amount: 1199.95,
reference: "21 00000 00003 13947 14300 09017",
creditor: {
name: "Robert Schneider AG",
address: "Rue du Lac 1268",
Expand Down Expand Up @@ -79,8 +80,8 @@ This will generate the following PDF file
Available options:
- language - string: Either `"DE" | "EN" | "IT" | "FR"`. Default `"DE"`.
- size - string: Either `"A4" | "A6/5"`. Default `"A6/5"`.
- scissors - boolean: Wether you want to show the scissor icons or the text `Separate before paying in`. Default `true`.
- autoGenerate - boolean: Wether you want to atomatically finalize the PDF. When set to false you are able to add your own content to the PDF using PDFKit. Default `true`.
- scissors - boolean: Whether you want to show the scissor icons or the text `Separate before paying in`. Default `true`.
- autoGenerate - boolean: Whether you want to atomatically finalize the PDF. When set to false you are able to add your own content to the PDF using PDFKit. Default `true`.

#### addPage()
Adds a new page to the PDF.
Expand Down Expand Up @@ -112,6 +113,7 @@ const SwissQRBill = require("swissqrbill");
const data = {
currency: "CHF",
amount: 1199.95,
reference: "21 00000 00003 13947 14300 09017",
creditor: {
name: "Robert Schneider AG",
address: "Rue du Lac 1268",
Expand Down
Binary file modified assets/qrbill.pdf
Binary file not shown.
Binary file modified assets/qrbill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions example/a6.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const SwissQRBill = require("../");
const data = {
currency: "CHF",
amount: 1199.95,
reference: "21 00000 00003 13947 14300 09017",
creditor: {
name: "Robert Schneider AG",
address: "Rue du Lac 1268",
Expand Down
1 change: 1 addition & 0 deletions example/multipage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const SwissQRBill = require("../");
const data = {
currency: "CHF",
amount: 1199.95,
reference: "21 00000 00003 13947 14300 09017",
creditor: {
name: "Robert Schneider AG",
address: "Rue du Lac 1268",
Expand Down
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swissqrbill",
"version": "1.0.4",
"description": "Node implementation for the swiss QR bill",
"version": "1.0.5",
"description": "Swiss QR Bill generation in node.js ",
"main": "./index.js",
"types": "./lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -31,6 +31,7 @@
},
"homepage": "https://github.com/Rogerrrrrrrs/SwissQRBill#readme",
"devDependencies": {
"@types/iban": "0.0.30",
"@types/node": "^13.7.7",
"@types/pdfkit": "^0.10.5",
"@types/qrcode": "^1.3.4",
Expand All @@ -42,6 +43,7 @@
"typescript": "^3.8.3"
},
"dependencies": {
"iban": "0.0.14",
"pdfkit": "^0.11.0",
"qrcode-svg": "^1.1.0",
"svg-parser": "^2.0.4",
Expand Down
Loading

0 comments on commit f01073e

Please sign in to comment.