Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make table config optional #3552

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MangelMaxime
Copy link

Looking both at the code

jsPDF/src/modules/cell.js

Lines 378 to 384 in 2d9a919

jsPDFAPI.table = function(x, y, data, headers, config) {
_initialize.call(this);
if (!data) {
throw new Error("No data for PDF table.");
}
config = config || {};
and the tests
it("table with CellConfig[]", () => {
var doc = new jsPDF({
putOnlyUsedFonts: true,
orientation: "landscape",
floatPrecision: 2
});
doc.table(1, 1, generateData(100), header);
comparePdf(doc.output(), "table.pdf");
});

It seems like config is an optional argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant