From 92feccc146f479510cfac3cde9e74217601ef71d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 5 Nov 2024 20:03:18 +0100 Subject: [PATCH] Feature: add A4-protrait export function --- .../CurrentMapWithHeader_A4_Portrait.svg | 240 ++++++++++++++++++ src/Utils/svgToPdf.ts | 7 + 2 files changed, 247 insertions(+) create mode 100644 public/assets/templates/CurrentMapWithHeader_A4_Portrait.svg diff --git a/public/assets/templates/CurrentMapWithHeader_A4_Portrait.svg b/public/assets/templates/CurrentMapWithHeader_A4_Portrait.svg new file mode 100644 index 000000000..8941f2323 --- /dev/null +++ b/public/assets/templates/CurrentMapWithHeader_A4_Portrait.svg @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + $map(current) + $general.pdf.attr + +$general.pdf.attrBackground +$general.pdf.generatedWith + + + ${title} + + + $general.pdf.versionInfo + + $img(layouticon) + + + + + + + + + + diff --git a/src/Utils/svgToPdf.ts b/src/Utils/svgToPdf.ts index e413d3c5a..46f8fcaa9 100644 --- a/src/Utils/svgToPdf.ts +++ b/src/Utils/svgToPdf.ts @@ -915,6 +915,7 @@ export class SvgToPdf { | "poster_a3" | "poster_a2" | "current_view_a4" + |"current_view_a4_portrait" | "current_view_a3_portrait" | "current_view_a3_landscape", PdfTemplateInfo @@ -949,6 +950,12 @@ export class SvgToPdf { pages: ["./assets/templates/CurrentMapWithHeaderA4.svg"], isPublic: true, }, + current_view_a4_portrait: { + format: "a4", + orientation: "portrait", + pages: ["./assets/templates/CurrentMapWithHeader_A4_Portrait.svg"], + isPublic: true, + }, current_view_a3_landscape: { format: "a3", orientation: "landscape",