From 6141e765cd5cde8727a02b4252189227ff0e1373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Sch=C3=B6nb=C3=A4chler?= <42278642+schoero@users.noreply.github.com> Date: Sat, 13 Nov 2021 08:31:42 +0100 Subject: [PATCH] [PDF] Fix positioning of swiss cross (#353) --- src/pdf/pdf.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pdf/pdf.ts b/src/pdf/pdf.ts index f518171..ba56e09 100644 --- a/src/pdf/pdf.ts +++ b/src/pdf/pdf.ts @@ -559,13 +559,13 @@ export class PDF_ extends ExtendedPDF { const swissCrossBackground = "M18.3 0.7L1.6 0.7 0.7 0.7 0.7 1.6 0.7 18.3 0.7 19.1 1.6 19.1 18.3 19.1 19.1 19.1 19.1 18.3 19.1 1.6 19.1 0.7Z"; const swissCross = "M8.3 4H11.6V15H8.3V4Z M4.4 7.9H15.4V11.2H4.4V7.9Z"; - this.addPath(swissCrossBackground, utils.mm2pt(86), this._marginTop + utils.mm2pt(36)) + this.addPath(swissCrossBackground, utils.mm2pt(86.5), this._marginTop + utils.mm2pt(36)) .fillColor("black") .lineWidth(1.42) .strokeColor("white") .fillAndStroke(); - this.addPath(swissCross, utils.mm2pt(86), this._marginTop + utils.mm2pt(36)) + this.addPath(swissCross, utils.mm2pt(86.5), this._marginTop + utils.mm2pt(36)) .fillColor("white") .fill();