diff --git a/readme.md b/readme.md index e8a693c..562e93c 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -95,7 +95,7 @@ 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. ``` @@ -103,8 +103,7 @@ - Step 6 - After setting all parameters, just pass document and options to `pdf.create` method. ```javascript - pdf - .create(document, options) + pdf(document, options) .then((res) => { console.log(res); })