This commit is contained in:
Timur Ercan
2023-02-20 18:23:54 +01:00
parent 9e4874bd27
commit 490b5d21b2
2 changed files with 1 additions and 3 deletions

View File

@ -15,7 +15,7 @@ export async function insertImageInPDF(
const drawSize = { width: 213, height: 50 };
pdfPage.drawImage(pngImage, {
x: pdfPage.getWidth() - positionX - drawSize.width,
x: positionX,
y: pdfPage.getHeight() - positionY - drawSize.height,
width: drawSize.width,
height: drawSize.height,