Skip to content

Commit

Permalink
docs: fix file name
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Oct 29, 2023
1 parent 3cf28b9 commit 991919f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how-to-create-a-complete-bill.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ We start by creating the PDF file itself. To do this, we create a new instance o
const pdf = new PDFDocument({ size: "A4" });
```

PDFKit operates with streams. This means that we can't just write the PDF file to the disk, but we have to pipe the output to a writable stream. In this example we are going to use the [`createWriteStream`](https://nodejs.org/api/fs.html#fscreatewritestreampath-options) function of the `fs` module from Node.js to create a writable stream to a file called `complete-qr-bill.pdf`.
PDFKit operates with streams. This means that we can't just write the PDF file to the disk, but we have to pipe the output to a writable stream. In this example we are going to use the [`createWriteStream`](https://nodejs.org/api/fs.html#fscreatewritestreampath-options) function of the `fs` module from Node.js to create a writable stream to a file called `qr-bill.pdf`.

The [`createWriteStream`](https://nodejs.org/api/fs.html#fscreatewritestreampath-options) function can be imported from the `fs` module like this:

Expand Down

0 comments on commit 991919f

Please sign in to comment.