mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
🐛 doc-124 Text Signature is not places at field coordinates
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user