[FE][Certs] Fix RETROEXCAVADORA cert invalid position of custom label

master
Araozu 2024-01-02 15:58:31 -05:00
parent 0fd43d28cd
commit 778b0b9b95
1 changed files with 12 additions and 1 deletions

View File

@ -111,10 +111,20 @@ export async function retroexcavadora(props: CertData<null>): Promise<Document>
yPosition: 8.4, yPosition: 8.4,
width: 20, width: 20,
height: 1.5, height: 1.5,
text: `OPERADOR PROFESIONAL DE RETROEXCAVADORA ${props.certCustomLabel}`, text: "OPERADOR PROFESIONAL DE RETROEXCAVADORA",
size: 40, size: 40,
bold: true, bold: true,
}); });
// This is split because if there's a custom label, the text must be split.
const tCourseCustomLabel = hasCustomLabel ? createSimpleText({
xPosition: 2.2,
yPosition: 8.4 + customLabelYOffset,
width: 20,
height: 1.5,
text: props.certCustomLabel ?? "",
size: 40,
bold: true,
}) : undefined;
const imgQR = await getQR({ const imgQR = await getQR({
iid: props.certIId, iid: props.certIId,
@ -252,6 +262,7 @@ export async function retroexcavadora(props: CertData<null>): Promise<Document>
tName, tName,
tContentPart1, tContentPart1,
tCourse, tCourse,
tCourseCustomLabel,
tTopics, tTopics,
tFinishLabel, tFinishLabel,
certificateDate, certificateDate,