download pdf in portrait mode

This commit is contained in:
Wolfgang 2024-05-20 18:27:42 +02:00
parent e7a9117173
commit 96c1fdf0d6

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", () => {