xhtml2pdf with custom fonts and static files
1.0.0
Proyecto Django XHTML2PDF para leer archivos estáticos y fuentes personalizadas
Descargué este código de Dennis Ivy Github (su YouTube: https://www.youtube.com/@dennisivy). La base del código fue hecha por él (plantillas, URL, configuración). Agregué dos funciones: link_callback y render_pdf_download. Fueron creados para leer archivos estáticos y fuentes personalizadas para la biblioteca XHTML2PDF. El XHTML2PDF solo admite estas propiedades CSS: https://xhtml2pdf.readthedocs.io/en/latest/reference.html. Entonces, lea esta documentación antes de usarla. ¡Divertirse!
python -m venv venv
PIP install django == 4.2.8
PIP install xhtml2pdf
Python Manage.py RunServer
Configuración de pago para estática