From e8e5aec8a134ebcfa7aa224a97136557fafc9046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Sch=C3=B6nb=C3=A4chler?= <42278642+schoero@users.noreply.github.com> Date: Thu, 16 Nov 2023 20:17:44 +0100 Subject: [PATCH] fix(table): continue table on the same horizontal position --- src/pdf/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdf/table.ts b/src/pdf/table.ts index 595f73f..2d88285 100644 --- a/src/pdf/table.ts +++ b/src/pdf/table.ts @@ -334,7 +334,7 @@ export class Table { rowY + rowHeight >= doc.page.height - doc.page.margins.bottom ){ doc.switchToPage(this.getCurrentPage(doc) + 1); - doc.x = doc.page.margins.left ?? 0; + doc.x = tableX; doc.y = doc.page.margins.top ?? 0; rowY = doc.y; }