adonis-pdf
Advanced tools
Comparing version 0.0.10 to 0.0.11
{ | ||
"name": "adonis-pdf", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Create PDF files within Adonis using pdfmake", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,5 +43,5 @@ 'use strict' | ||
create (content, stream) { | ||
if (typeof content === 'object') { | ||
this.document = this.printer.createPdfKitDocument({ content: content }) | ||
create (definition, stream) { | ||
if (typeof definition === 'object') { | ||
this.document = this.printer.createPdfKitDocument(definition) | ||
this.document.pipe(stream) | ||
@@ -48,0 +48,0 @@ this.document.end() |
2113247