Skip to content

The Open Source DocuSign Alternative.

🐛 doc-124 Text Signature is not places at field coordinates

Timur Ercan103f9cbe36ba
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,