[docx] Fix incorrect elements position (SUPERVISOR_ESCOLTA)

This commit is contained in:
Fernando 2023-06-23 11:37:44 -05:00
parent 13f4ca0f51
commit 7f163db1cd
2 changed files with 15 additions and 10479 deletions

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,7 @@ const imgEATE = getImage({
height: 2.28,
width: 3.39,
horizontalOffset: 0.94,
verticalOffset: 13.77,
verticalOffset: 15.67,
});
const imgMTC = getImage({
@ -38,7 +38,7 @@ const imgMTC = getImage({
height: 1.6,
width: 5,
horizontalOffset: 0.9,
verticalOffset: 17.22,
verticalOffset: 18.3,
});
const imgOSHA = getImage({
@ -73,7 +73,7 @@ const tCertificate = createSimpleTextP({
// Se expide el presente
const tLabel3 = createSimpleTextP({
xPosition: 11.08,
yPosition: 4.62,
yPosition: 5.43,
width: 7.74,
height: 0.5,
text: "Se expide el presente a:",
@ -84,7 +84,7 @@ const tLabel3 = createSimpleTextP({
// SUPERVISOR ESCOLTA MATPEL
const tCourse = createSimpleTextP({
xPosition: 7.28,
yPosition: 7.94,
yPosition: 8.75,
width: 15.42,
height: 1.5,
text: "SUPERVISOR ESCOLTA MATPEL",
@ -95,7 +95,7 @@ const tCourse = createSimpleTextP({
// Por haber aprobado la dormacion...
const tLabel2 = createSimpleTextP({
xPosition: 10.93,
yPosition: 7.14,
yPosition: 7.95,
width: 7.74,
height: 0.6,
text: "Por haber aprobado la formación en el curso",
@ -106,7 +106,7 @@ const tLabel2 = createSimpleTextP({
// Temas tratados...
const tTopics = createSimpleTextP({
xPosition: 5.04,
yPosition: 9.49,
yPosition: 10.3,
width: 19.34,
height: 1.5,
text: "Temas tratados: Inspección de Unidades y Llenado de Herramientas de Gestión Check List, IPERC, Inspección básica de Kit de Emergencias, Parada de Controles e Inspección, Delimitación y Evaluación del Evento, Sistemas de Comando de Incidentes, Practicas Reales en caso de Derrames de MATPEL con Trajes, Evacuación de Pacientes Afectados con Camioneta, Primeros Auxilios básico, Con una duración de 36 horas lectivas.",
@ -118,7 +118,7 @@ const tTopics = createSimpleTextP({
// Respaldado por:
const tHours = createSimpleTextP({
xPosition: 1.15,
yPosition: 13.15,
yPosition: 15,
width: 3.07,
height: 0.5,
text: "Respaldado por:",
@ -131,7 +131,7 @@ const tHours = createSimpleTextP({
// Chile
const tChile = createSimpleTextP({
xPosition: 3.07,
yPosition: 15.98,
yPosition: 17.83,
width: 1.43,
height: 0.5,
text: "CHILE",
@ -144,7 +144,7 @@ const tChile = createSimpleTextP({
// Se expide certificado...
const tFinishLabel = createSimpleTextP({
xPosition: 8.22,
yPosition: 11.87,
yPosition: 12.68,
width: 13.15,
height: 0.5,
text: "Se expide el presente certificado para los fines que se estime conveniente",
@ -160,7 +160,7 @@ const photoSection = new Paragraph({
frame: {
position: {
x: cmText(25),
y: cmText(4.37),
y: cmText(5.2),
},
height: cmText(3.57),
width: cmText(2.81),
@ -199,13 +199,13 @@ export async function supervisorEscolta(props: CertData<null>): Promise<Buffer>
height: 2.5,
width: 2.5,
horizontalOffset: 25.85,
verticalOffset: 15.88,
verticalOffset: 17.49,
});
// FERNANDO ARAOZ
const tName = createSimpleTextP({
xPosition: 3.78,
yPosition: 5.21,
yPosition: 6.02,
width: 22.07,
height: 1.5,
text: props.personFullName,
@ -219,7 +219,7 @@ export async function supervisorEscolta(props: CertData<null>): Promise<Buffer>
frame: {
position: {
x: cmText(11.84),
y: cmText(6.54),
y: cmText(7.35),
},
width: cmText(6.02),
height: cmText(0.6),
@ -249,7 +249,7 @@ export async function supervisorEscolta(props: CertData<null>): Promise<Buffer>
frame: {
position: {
x: cmText(19.62),
y: cmText(17.58),
y: cmText(19.2),
},
width: cmText(5.87),
height: cmText(0.75),
@ -277,7 +277,7 @@ export async function supervisorEscolta(props: CertData<null>): Promise<Buffer>
// N° XXXX-20XX-EEG
const tCertCode = createSimpleTextP({
xPosition: 24.59,
yPosition: 8.07,
yPosition: 9,
width: 3.67,
height: 0.5,
text: `${props.certCode}-${props.certYear}-EEG`,