From 31d3ac22b12baca2c46a179f19b877de3a8a0d24 Mon Sep 17 00:00:00 2001 From: dm5wk Date: Tue, 20 May 2025 18:27:42 +0200 Subject: [PATCH] download pdf in portrait mode --- band-plan.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/band-plan.html b/band-plan.html index 7968e94..cbf1dbb 100644 --- a/band-plan.html +++ b/band-plan.html @@ -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", () => {