Skip to content

Commit 973e513

Browse files
5.0.3
1 parent 3555caf commit 973e513

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

dist/jspdf.plugin.autotable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
*
3-
* jsPDF AutoTable plugin v5.0.2
3+
* jsPDF AutoTable plugin v5.0.3
44
*
55
* Copyright (c) 2025 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
66
* Licensed under the MIT License.
@@ -221,7 +221,7 @@ function calculateWidths(doc, table) {
221221
// reduce font size, increase page size or remove custom cell widths
222222
// to allow more columns to be reduced in size
223223
resizeWidth = resizeWidth < 1 ? resizeWidth : Math.round(resizeWidth);
224-
console.warn("Of the table content, ".concat(resizeWidth, " units width could not fit page"));
224+
console.log("Of the table content, ".concat(resizeWidth, " units width could not fit page"));
225225
}
226226
applyColSpans(table);
227227
fitContent(table, doc);
@@ -1944,7 +1944,7 @@ function shouldPrintOnCurrentPage(doc, row, remainingPageSpace, table) {
19441944
var minRowHeight = row.getMinimumRowHeight(table.columns, doc);
19451945
var minRowFits = minRowHeight < remainingPageSpace;
19461946
if (minRowHeight > maxRowHeight) {
1947-
console.error("Will not be able to print row ".concat(row.index, " correctly since it's minimum height is larger than page height"));
1947+
console.log("Will not be able to print row ".concat(row.index, " correctly since it's minimum height is larger than page height"));
19481948
return true;
19491949
}
19501950
if (!minRowFits) {
@@ -1954,7 +1954,7 @@ function shouldPrintOnCurrentPage(doc, row, remainingPageSpace, table) {
19541954
var rowHigherThanPage = row.getMaxCellHeight(table.columns) > maxRowHeight;
19551955
if (rowHigherThanPage) {
19561956
if (rowHasRowSpanCell) {
1957-
console.error("The content of row ".concat(row.index, " will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported."));
1957+
console.log("The content of row ".concat(row.index, " will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported."));
19581958
}
19591959
return true;
19601960
}

dist/jspdf.plugin.autotable.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jspdf.plugin.autotable.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ function calculateWidths(doc, table) {
11151115
// reduce font size, increase page size or remove custom cell widths
11161116
// to allow more columns to be reduced in size
11171117
resizeWidth = resizeWidth < 1 ? resizeWidth : Math.round(resizeWidth);
1118-
console.warn("Of the table content, ".concat(resizeWidth, " units width could not fit page"));
1118+
console.log("Of the table content, ".concat(resizeWidth, " units width could not fit page"));
11191119
}
11201120
applyColSpans(table);
11211121
fitContent(table, doc);
@@ -1807,7 +1807,7 @@ function shouldPrintOnCurrentPage(doc, row, remainingPageSpace, table) {
18071807
var minRowHeight = row.getMinimumRowHeight(table.columns, doc);
18081808
var minRowFits = minRowHeight < remainingPageSpace;
18091809
if (minRowHeight > maxRowHeight) {
1810-
console.error("Will not be able to print row ".concat(row.index, " correctly since it's minimum height is larger than page height"));
1810+
console.log("Will not be able to print row ".concat(row.index, " correctly since it's minimum height is larger than page height"));
18111811
return true;
18121812
}
18131813
if (!minRowFits) {
@@ -1817,7 +1817,7 @@ function shouldPrintOnCurrentPage(doc, row, remainingPageSpace, table) {
18171817
var rowHigherThanPage = row.getMaxCellHeight(table.columns) > maxRowHeight;
18181818
if (rowHigherThanPage) {
18191819
if (rowHasRowSpanCell) {
1820-
console.error("The content of row ".concat(row.index, " will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported."));
1820+
console.log("The content of row ".concat(row.index, " will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported."));
18211821
}
18221822
return true;
18231823
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspdf-autotable",
3-
"version": "5.0.2",
3+
"version": "5.0.3",
44
"description": "Generate pdf tables with javascript (jsPDF plugin)",
55
"main": "dist/jspdf.plugin.autotable.js",
66
"exports": {

0 commit comments

Comments
 (0)