download pdf in portrait mode
This commit is contained in:
parent
57296894bd
commit
31d3ac22b1
|
@ -127,7 +127,11 @@ div#togglebuttons>button {
|
||||||
if (table.getSelectedRows().length > 0) {
|
if (table.getSelectedRows().length > 0) {
|
||||||
download_range = "selected";
|
download_range = "selected";
|
||||||
}
|
}
|
||||||
table.download("pdf", path.basename(document.getElementById('sel_plan').value, '.yml') + '.pdf', {}, download_range);
|
table.download(
|
||||||
|
"pdf",
|
||||||
|
path.basename(document.getElementById('sel_plan').value, '.yml') + '.pdf',
|
||||||
|
{ orientation:"portrait" },
|
||||||
|
download_range);
|
||||||
});
|
});
|
||||||
|
|
||||||
table.on("tableBuilt", () => {
|
table.on("tableBuilt", () => {
|
||||||
|
|
Loading…
Reference in a new issue