From 103f9cbe36ba5c04d73902877a0edae066bfb890 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Tue, 28 Feb 2023 14:19:29 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20doc-124=20Text=20Signature=20is?= =?UTF-8?q?=20not=20places=20at=20field=20coordinates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/pdf/insertTextInPDF.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pdf/insertTextInPDF.ts b/packages/pdf/insertTextInPDF.ts index 394152813..184f8b963 100644 --- a/packages/pdf/insertTextInPDF.ts +++ b/packages/pdf/insertTextInPDF.ts @@ -24,7 +24,7 @@ export async function insertTextInPDF( const textHeight = customFont.heightAtSize(textSize); pdfPage.drawText(text, { - x: pdfPage.getWidth() - positionX - textWidth / 2, // todo adjust for exact field size + x: positionX, // todo adjust for exact field size y: pdfPage.getHeight() - positionY - textHeight / 2, // todo adjust for exact field size size: textSize, font: customFont,