Skip to content

Commit

Permalink
Add packPdf reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dolanmiu committed Dec 6, 2017
1 parent 5889f20 commit 66d0bab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 66d0bab

Please sign in to comment.