Skip to content

Commit

Permalink
Merge pull request #1411 from chooblarin/doc-fix
Browse files Browse the repository at this point in the history
Fix doc about creation of pdf document
  • Loading branch information
liborm85 authored Oct 30, 2024
2 parents 5223809 + e48002d commit 22b826d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ in your JavaScript source file and create an instance of the
`PDFDocument` class.

const PDFDocument = require('pdfkit');
const doc = new PDFDocument;
const doc = new PDFDocument();

`PDFDocument` instances are readable Node streams. They don't get saved anywhere automatically,
but you can call the `pipe` method to send the output of the PDF document to another
Expand Down

0 comments on commit 22b826d

Please sign in to comment.