Elemente pdf

This commit is contained in:
Jens Cornelsen
2025-04-15 14:24:46 +02:00
parent bfa79fb06e
commit df81964b86
2 changed files with 15 additions and 3 deletions

BIN
persistent/images/haken.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

View File

@@ -106,10 +106,22 @@ export async function pdfVerbrauchsausweisWohnen(ausweis: VerbrauchsausweisWohne
}) })
// Nach 82 aus Wohnfläche ermittelt // Nach 82 aus Wohnfläche ermittelt
if (aufnahme.flaeche == 0) { if (aufnahme.flaeche == 0) {
addCheckMark(pages[0], 274, height - 277) // addCheckMark(pages[0], 274, height - 277)
}
const haken = await getS3File("ibc-images", `haken.png`);
if (haken) {
let image: PDFImage;
image = await pdf.embedPng(haken)
pages[0].drawImage(image, {
x: 274,
y: height - 277,
width: 10,
height: 10
})
}
}
pages[0].drawText(`${ausweis.brennstoff_1}, ${ausweis.brennstoff_2 || ""}`, { pages[0].drawText(`${ausweis.brennstoff_1}, ${ausweis.brennstoff_2 || ""}`, {
x: 211, x: 211,