From 27269de0c4dc1ab0fb85c44a5eebdeaf5565ca1b Mon Sep 17 00:00:00 2001 From: sanjay147654 Date: Thu, 20 Jun 2019 18:52:22 +0530 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9421b66..624db8c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ pdf.create(html, options).toFile('./businesscard.pdf', function(err, res) { ```js var pdf = require('html-pdf'); -pdf.create(html).toFile([filepath, ]function(err, res){ +pdf.create(html).toFile([filepath],function(err, res){ console.log(res.filename); }); @@ -55,8 +55,8 @@ pdf.create(html).toBuffer(function(err, buffer){ // for backwards compatibility -// alias to pdf.create(html[, options]).toBuffer(callback) -pdf.create(html [, options], function(err, buffer){}); +// alias to pdf.create(html,[options]).toBuffer(callback) +pdf.create(html,[options], function(err, buffer){}); ``` ### Footers and Headers