Compare commits
3 Commits
componente
...
e7a47f56f8
| Author | SHA1 | Date | |
|---|---|---|---|
| e7a47f56f8 | |||
| 214d17cf98 | |||
| 8c890d76e0 |
@@ -21,7 +21,8 @@ export function DownloadPlanPDF({ plan }: { plan: PlanLike }) {
|
||||
unit: "mm",
|
||||
format: "letter",
|
||||
})
|
||||
|
||||
console.log(plan);
|
||||
|
||||
const pageWidth = doc.internal.pageSize.getWidth()
|
||||
const pageHeight = doc.internal.pageSize.getHeight()
|
||||
const margin = 20
|
||||
@@ -229,7 +230,7 @@ export function DownloadPlanPDF({ plan }: { plan: PlanLike }) {
|
||||
// LICENCIATURA EN INGENIERÍA CIBERNÉTICA Y SISTEMAS COMPUTACIONALES
|
||||
doc.setFontSize(18)
|
||||
// Manejamos la conversión a string si es necesario
|
||||
const mainTitle = (plan["titulo"] !== null && plan["titulo"] !== undefined ? String(plan["titulo"]) : "LICENCIATURA EN INGENIERÍA CIBERNÉTICA Y SISTEMAS COMPUTACIONALES").toUpperCase()
|
||||
const mainTitle = (plan["nombre"] !== null && plan["nombre"] !== undefined ? String(plan["nombre"]) : "LICENCIATURA EN INGENIERÍA CIBERNÉTICA Y SISTEMAS COMPUTACIONALES").toUpperCase()
|
||||
const mainTitleLines = doc.splitTextToSize(mainTitle, maxWidth - 20)
|
||||
doc.text(mainTitleLines, pageWidth / 2, cursorY, { align: "center" })
|
||||
cursorY += mainTitleLines.length * 8
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// dummy test
|
||||
import { StrictMode } from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import { RouterProvider, createRouter } from '@tanstack/react-router'
|
||||
|
||||
Reference in New Issue
Block a user