pdfkit-table
Advanced tools
Comparing version 0.1.36 to 0.1.37
@@ -7,4 +7,4 @@ "use strict"; | ||
constructor(options) { | ||
super(options); | ||
constructor(option) { | ||
super(option); | ||
} | ||
@@ -88,2 +88,6 @@ | ||
// add a new page before crate table | ||
options.addPage && this.addPage( option ); | ||
// create title and subtitle | ||
createTitle( title, 12, 1 ); | ||
@@ -97,2 +101,3 @@ createTitle( subtitle, 9, 0.7 ); | ||
// add fire | ||
this.on("pageAdded", () => { | ||
@@ -99,0 +104,0 @@ startY = this.page.margins.top; |
{ | ||
"name": "pdfkit-table", | ||
"version": "0.1.36", | ||
"version": "0.1.37", | ||
"description": "PdfKit Table. Helps to draw informations in simple tables using pdfkit. #server-side. Generate pdf tables with javascript (PDFKIT plugin) ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -256,2 +256,3 @@ # pdfkit-table | ||
| **rowSpacing** | <code>Number</code> | 3 | | | ||
| **addPage** | <code>Boolean</code> | false | add table on new page | | ||
| **prepareHeader** | <code>Function</code> | Function | | | ||
@@ -361,2 +362,7 @@ | **prepareRow** | <code>Function</code> | Function | | | ||
### 0.1.37 | ||
+ **addPage** <code>{String}</code> - Add table on new page. | ||
- const options = { addPage: true, }; | ||
### 0.1.36 | ||
@@ -363,0 +369,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
354
428
26652
3