Skip to content

Commit

Permalink
Merge pull request #5 from Rogerrrrrrrs/development
Browse files Browse the repository at this point in the history
v1.0.3
  • Loading branch information
schoero authored Mar 2, 2020
2 parents 1494ef9 + 140c16b commit a95366f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,12 @@ const data = {
}
};

const bill = new SwissQRBill.PDF(data, "qrbill.pdf", { size: "A6/5" });
const bill = new SwissQRBill.PDF(data, "qrbill.pdf");
```

This will generate the following PDF file

<object data="https://github.com/Rogerrrrrrrs/SwissQRBill/assets/qrbill.pdf" type="application/pdf" width="700px" height="700px">
<embed src="https://github.com/Rogerrrrrrrs/SwissQRBill/assets/qrbill.pdf">
<p>This browser does not support PDFs. Please download the PDF to view it: <a href="https://github.com/Rogerrrrrrrs/SwissQRBill/assets/qrbill.pdf">Download PDF</a>.</p>
</embed>
</object>
[<img src="https://raw.githubusercontent.com/Rogerrrrrrrs/SwissQRBill/development/assets/qrbill.png">](https://github.com/Rogerrrrrrrs/SwissQRBill/blob/master/assets/qrbill.pdf)

## API

Expand Down
Binary file modified assets/qrbill.pdf
Binary file not shown.
Binary file added 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.
2 changes: 1 addition & 1 deletion package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "swissqrbill",
"version": "1.0.2",
"version": "1.0.3",
"description": "Node implementation for the swiss QR bill",
"main": "./index.js",
"types": "./lib/index.d.ts",
"files": [
"lib/**/*"
],
"scripts": {
"test": "cd tests && sh run.sh",
"build": "tsc"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ export namespace SwissQRBill {
qrString += this._data.reference + "\n"; // Reference

if(this._data.message !== undefined){
qrString += this._data.reference + "\n"; // Unstructured message
qrString += this._data.message + "\n"; // Unstructured message
}

qrString += "EPD" + "\n"; // End Payment Data
Expand Down

0 comments on commit a95366f

Please sign in to comment.