Unterlagen und weitere Fehler

This commit is contained in:
Moritz Utcke
2025-04-05 13:06:50 -03:00
parent 516e854616
commit 09cd167a70
34 changed files with 205 additions and 225 deletions

View File

@@ -4,12 +4,10 @@ import { getEmpfehlungen } from "#lib/XML/getEmpfehlungen.js";
import { Enums } from "#lib/server/prisma.js";
import * as fs from "fs"
import moment from "moment";
import { PDFDocument, PDFFont, PDFImage, PDFPage, StandardFonts, TextAlignment } from "pdf-lib";
import { PDFDocument, PDFFont, PDFImage, PDFPage, StandardFonts } from "pdf-lib";
import { addCheckMark } from "./utils/checkbox.js";
import { addText } from "./utils/text.js";
import { addAnsichtsausweisLabel, addDatumGEG } from "./utils/helpers.js";
import { fileURLToPath } from "url";
import { PERSISTENT_DIR } from "#lib/server/constants.js";
import { getS3File } from "#lib/s3.js";
/* -------------------------------- Pdf Tools ------------------------------- */
@@ -106,7 +104,7 @@ export async function pdfVerbrauchsausweisWohnen(ausweis: VerbrauchsausweisWohne
pages[0].drawText(erneuerbareEnergienVerwendung.join(", "), {
x: 358,
y: height - 325,
y: height - 338,
size: 8
})