From 66d0bab0a55ac229e0c08facb1d19bf62e0b4e85 Mon Sep 17 00:00:00 2001 From: Dolan Date: Wed, 6 Dec 2017 01:39:24 +0000 Subject: [PATCH] Add packPdf reference --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f444e0f482..b389f333da 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,8 @@ var exporter = new docx.LocalPacker(doc); var exporter = new docx.ExpressPacker(doc, res); exporter.pack('My First Document'); +// If you want to export it as a .pdf file instead +exporter.packPdf('My First Document'); // done! A file called 'My First Document.docx' // will be in your file system if you used LocalPacker @@ -88,4 +90,3 @@ Huge thanks to [@felipeochoa](https://github.com/felipeochoa) for awesome contri [gitter-url]: https://gitter.im/docx-lib/Lobby [gemnasium-image]: https://gemnasium.com/badges/github.com/dolanmiu/docx.svg [gemnasium-url]: https://gemnasium.com/github.com/dolanmiu/docx -