[FE][Certs] Fix RETROEXCAVADORA cert invalid position of custom label
This commit is contained in:
parent
0fd43d28cd
commit
778b0b9b95
@ -111,10 +111,20 @@ export async function retroexcavadora(props: CertData<null>): Promise<Document>
|
||||
yPosition: 8.4,
|
||||
width: 20,
|
||||
height: 1.5,
|
||||
text: `OPERADOR PROFESIONAL DE RETROEXCAVADORA ${props.certCustomLabel}`,
|
||||
text: "OPERADOR PROFESIONAL DE RETROEXCAVADORA",
|
||||
size: 40,
|
||||
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({
|
||||
iid: props.certIId,
|
||||
@ -252,6 +262,7 @@ export async function retroexcavadora(props: CertData<null>): Promise<Document>
|
||||
tName,
|
||||
tContentPart1,
|
||||
tCourse,
|
||||
tCourseCustomLabel,
|
||||
tTopics,
|
||||
tFinishLabel,
|
||||
certificateDate,
|
||||
|
Loading…
Reference in New Issue
Block a user