Elemente pdf
This commit is contained in:
BIN
persistent/images/haken.png
Normal file
BIN
persistent/images/haken.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 256 B |
@@ -107,9 +107,21 @@ 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,
|
||||||
|
|||||||
Reference in New Issue
Block a user