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

This commit is contained in:
Timur Ercan
2023-02-28 14:19:29 +01:00
parent 278a53a79f
commit 103f9cbe36

View File

@ -24,7 +24,7 @@ export async function insertTextInPDF(
const textHeight = customFont.heightAtSize(textSize); const textHeight = customFont.heightAtSize(textSize);
pdfPage.drawText(text, { 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 y: pdfPage.getHeight() - positionY - textHeight / 2, // todo adjust for exact field size
size: textSize, size: textSize,
font: customFont, font: customFont,