download pdf in portrait mode

This commit is contained in:
Wolfgang 2025-05-20 18:27:42 +02:00
parent 57296894bd
commit 31d3ac22b1

View file

@ -127,7 +127,11 @@ div#togglebuttons>button {
if (table.getSelectedRows().length > 0) {
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", () => {