Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some typos to make code work #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

```javascript
//Required package
var pdf = require("pdf-creator-node");
var pdf = require("pdf-node");
var fs = require("fs");

// Read HTML Template
Expand Down Expand Up @@ -95,16 +95,15 @@
users: users,
},
path: "./output.pdf",
type: "",
type: "pdf",
};
// By default a file is created but you could switch between Buffer and Streams by using "buffer" or "stream" respectively.
```

- Step 6 - After setting all parameters, just pass document and options to `pdf.create` method.
- Step 6 - After setting all parameters, just pass document and options to `pdf` method.

```javascript
pdf
.create(document, options)
pdf(document, options)
.then((res) => {
console.log(res);
})
Expand Down Expand Up @@ -193,4 +192,4 @@ You can only match 2 variables

### License

pdf-creator-node is [MIT licensed](./LICENSE).
pdf-node is [MIT licensed](./LICENSE).