Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Jan 22, 2021
1 parent 8e995ef commit 4b009cc
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doc/how-to-create-a-complete-bill.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Once we have our data ready we can create a new instance of `SwissQRBill` and st

```js

const pdf = new SwissQRBill.PDF(data, "complete-qr-bill.pdf", { autoGenerate: false, size: "A4" });
const pdf = new SwissQRBill.PDF(data, "complete-qr-bill.pdf", { "autoGenerate": false, "size": "A4" });
```

Please note that we have set `autoGenerate` to `false` and `size` to `A4`.
Expand Down
2 changes: 1 addition & 1 deletion examples/a4.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ const data = {
}
};

const pdf = new SwissQRBill.PDF(data, "./output/a4.pdf", { size: "A4" });
const pdf = new SwissQRBill.PDF(data, "./output/a4.pdf", { "size": "A4" });
2 changes: 1 addition & 1 deletion examples/a6.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ const data = {
}
};

const pdf = new SwissQRBill.PDF(data, "./output/a6.pdf", { size: "A6/5" });
const pdf = new SwissQRBill.PDF(data, "./output/a6.pdf", { "size": "A6/5" });
2 changes: 1 addition & 1 deletion examples/how-to-create-a-complete-bill.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const data = {
}
};

const pdf = new SwissQRBill.PDF(data, "complete-qr-bill.pdf", { autoGenerate: false, size: "A4" });
const pdf = new SwissQRBill.PDF(data, "complete-qr-bill.pdf", { "autoGenerate": false, "size": "A4" });


//-- Add logo
Expand Down
2 changes: 1 addition & 1 deletion examples/multipage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const data = {
}
};

const pdf = new SwissQRBill.PDF(data, "./output/multipage.pdf", { autoGenerate: false });
const pdf = new SwissQRBill.PDF(data, "./output/multipage.pdf", { "autoGenerate": false });

pdf.fontSize(11);
pdf.font("Helvetica-Bold");
Expand Down
2 changes: 1 addition & 1 deletion tests/a4.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ const data = {
}
};

const pdf = new SwissQRBill.PDF(data, "./output/a4.pdf", { size: "A4" });
const pdf = new SwissQRBill.PDF(data, "./output/a4.pdf", { "size": "A4" });
2 changes: 1 addition & 1 deletion tests/a6-5.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ const data = {
}
};

const pdf = new SwissQRBill.PDF(data, "./output/a6-5.pdf", { size: "A6/5" });
const pdf = new SwissQRBill.PDF(data, "./output/a6-5.pdf", { "size": "A6/5" });
2 changes: 1 addition & 1 deletion tests/callback-with-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ const data = {
}
};

const pdf = new SwissQRBill.PDF(data, "./output/callback-with-options.pdf", { size: "A6/5" }, () => {
const pdf = new SwissQRBill.PDF(data, "./output/callback-with-options.pdf", { "size": "A6/5" }, () => {
console.log("File has been successfully created.");
});
2 changes: 1 addition & 1 deletion tests/multipage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const data = {
}
};

const pdf = new SwissQRBill.PDF(data, "./output/multipage.pdf", { autoGenerate: false, size: "A4" });
const pdf = new SwissQRBill.PDF(data, "./output/multipage.pdf", { "autoGenerate": false, "size": "A4" });

pdf.fontSize(11);
pdf.font("Helvetica-Bold");
Expand Down
2 changes: 1 addition & 1 deletion tests/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ const data = {
};

const stream = fs.createWriteStream("./output/stream.pdf");
const pdf = new SwissQRBill.PDF(data, stream, { size: "A6/5" });
const pdf = new SwissQRBill.PDF(data, stream, { "size": "A6/5" });

0 comments on commit 4b009cc

Please sign in to comment.