CSS in PDF

bart99.hermans266 16 Jan, 2025

Hi Max,

I managed to create a PDF from a table. Now I'm trying to style it.

As a test I tried to add a border to the table in the PDF. But it is not working.

* Inside the output buffer there is the CSS and the table:

* When I show the output buffer in HTML, it shows the border:

* But in the PDF anything I add to the CSS is not applied:

Do you have more information on how to change the styling of the PDF body?

Best regards,

Bart

Max_admin 16 Jan, 2025
Answer
1 Likes

your css code should be inside <style></style> tags inside an HTML view along with the Table view in the buffer

please try that and let me know

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 17 Jan, 2025

no problem, thanks for the confirmation.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger