¿Cómo puedo modificar un tema de ticket FooEvents existente o crear mi propio tema de ticket PDF o HTML?

Este artículo le guía a través del proceso de creación de su propio FooEvents Tema del billete que le recomendamos que lea antes de continuar:
Sea creativo con los temas de las entradas FooEvents - Parte 1
Sea creativo con los temas de las entradas FooEvents - Parte 2

Es importante tener en cuenta que la forma en que se generan las entradas PDF es ligeramente diferente a la del HTML y CSS normales. Hay algunos estilos y elementos que podrían funcionar bien al renderizar un correo electrónico o un archivo HTML, pero estos estilos podrían no ser compatibles con la biblioteca utilizada para generar los archivos PDF.

A continuación se indican algunos aspectos importantes que debe tener en cuenta al crear o modificar archivos PDF Ticket Theme:

  1. You can use either JPG o PNG imágenes. Si las imágenes PNG con transparencia no se muestran como es debido, deberá activar la extensión "imagick" en PHP. Si no está seguro de cómo hacerlo, es posible que su proveedor de alojamiento pueda ayudarle.
  2. Try to avoid using <table> sino utilizar elementos <div> tags.
  3. If you want to center images specifically avoid using the CSS declaration “margin: auto” but rather use “text-align: center”
  4. Don’t use Google Fonts. The built-in Fuente DejaVu admite una amplia gama de caracteres, incluidos los alfabetos griego, cirílico, hebreo y árabe.
  5. Try to avoid nesting elements e.g.
    <div>
    <div>Some content</div>
    <div>
  6. Don’t use the CSS declaration “display: block” on images as it might hide the image in some cases.
  7. If you don’t want an element to stretch over two pages, add the declaration “page-break-inside: avoid;”
  8. If you are nesting elements then apply CSS padding on the inner container and not the outer container.
  9. Use paths for images instead of URLs like in regular HTML.
  10. Add a closing </body> y no una etiqueta de cierre </html> para varias páginas PDF
  11. Don’t use the CSS “float” property on a tag that is nested inside another floated tag
  12. If a customer is buying more than one ticket for the same event then most PDF ticket themes will display the header and event information followed by 3 tickets, per page. If the PDF ticket looks broken then it might be because all this information does not fit on one page. To fix this you can use a log and/or header image that are not as high, remove padding, margins or text or set it so that only 1 or 2 tickets are shown on one page.

¿Necesita ayuda?

¿No encuentras la respuesta que necesitas? Nuestro equipo está aquí para ayudarte., ¡Ponte en contacto!