- Posts: 330
- Thank you received: 5
Customization of pdf export layout from backend
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
2 years 9 months ago #152557
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Customization of pdf export layout from backend
Thanks Tuan very happy for any suggestions or modifications !
My aim was to create a printable sign in sheet with the event details on top and registrant listed in a table. I didn’t want the event title repeated with each row as the printable will only be used for registrants on the same event.
My aim was to create a printable sign in sheet with the event details on top and registrant listed in a table. I didn’t want the event title repeated with each row as the printable will only be used for registrants on the same event.
Success consists of going from failure to failure without loss of enthusiasm.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 9 months ago #152562
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customization of pdf export layout from backend
Yes. I can see that from your code. Just for your information, I just update code of Events Booking to allow accessing location data easier if needed. Instead of having to query database as you know, you can just echo the code directly
echo $row->location_name;
echo $row->location_address;
That would help simplify your code a bit
Tuan
echo $row->location_name;
echo $row->location_address;
That would help simplify your code a bit
Tuan
The following user(s) said Thank You: OTWD
Please Log in or Create an account to join the conversation.
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 330
- Thank you received: 5
2 years 9 months ago #152572
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Customization of pdf export layout from backend
Brilliant thank you Tuan
Success consists of going from failure to failure without loss of enthusiasm.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 9 months ago #152573
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customization of pdf export layout from backend
You're welcome. While I cannot provide support for configure fields appear on PDF file (due to limitation of PDF), my intention is allow customers/developers to easy get the data they want to display on the PDF file, make it easier for customize the output.
Please Log in or Create an account to join the conversation.
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 330
- Thank you received: 5
2 years 9 months ago #152578
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Customization of pdf export layout from backend
Hi Tuan,
I have another system rendering pdf from database table data and the rendering allows basic css styling e.g
echo "<table style='width:100%; border-bottom: 1px solid grey;'>";
echo "<thead style='background:#ccc; padding:10px;'>";
However when i try to style the registrants_pdf.php override file with the same code it wont render the css for border-bottom or background colour - it only allows a solid border with no styling.
I tried adding an include for a uikit CSS library too but again the file ignores any styling classes.
Any ideas how a css library can be included please?
Thanks
I have another system rendering pdf from database table data and the rendering allows basic css styling e.g
echo "<table style='width:100%; border-bottom: 1px solid grey;'>";
echo "<thead style='background:#ccc; padding:10px;'>";
However when i try to style the registrants_pdf.php override file with the same code it wont render the css for border-bottom or background colour - it only allows a solid border with no styling.
I tried adding an include for a uikit CSS library too but again the file ignores any styling classes.
Any ideas how a css library can be included please?
Thanks
Success consists of going from failure to failure without loss of enthusiasm.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 9 months ago #152581
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customization of pdf export layout from backend
PDF, unlike HTML, only support basic CSS syntax. If you want to have better css support, try to use this plugin
eventbookingdoc.joomservices.com/plugins/mpdf
(But if you enable it, please make sure PDF layout for invoices, tickets - if you are using - still look OK as before)
Regards,
Tuan
(But if you enable it, please make sure PDF layout for invoices, tickets - if you are using - still look OK as before)
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.