From 718332271261a2a23aef2c7bfd44f29fc6a9a4fd Mon Sep 17 00:00:00 2001 From: yash-not-bot22 <135334977+yash-not-bot22@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:13:03 +0530 Subject: [PATCH] corrected some methods and file name -- the name of a module was wrong . --wrong method name --document type set to pdf --- readme.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); })