🎨 🧹📝 remove todos, document typing

This commit is contained in:
Timur Ercan
2023-03-01 14:58:31 +01:00
parent 035371bc0b
commit 53094dd9e4
8 changed files with 7 additions and 18 deletions

View File

@ -26,8 +26,8 @@ export async function insertTextInPDF(
const textHeight = customFont.heightAtSize(textSize);
pdfPage.drawText(text, {
x: positionX, // todo adjust for exact field size
y: pdfPage.getHeight() - positionY - textHeight / 2, // todo adjust for exact field size
x: positionX,
y: pdfPage.getHeight() - positionY - textHeight / 2,
size: textSize,
font: useHandwritingFont ? customFont : helveticaFont,
color: rgb(0, 0, 0),