Hi Jmix support,
I am stuck in to show the report template in hindi text pdf. its is working fine in .html but not working in .pdf
Hi Jmix support,
I am stuck in to show the report template in hindi text pdf. its is working fine in .html but not working in .pdf
Hello,
You need to set the jmix.reports.pdfFontsDirectory
property.
Docs - Configuration :: Jmix Documentation
Regards,
Nikita
Hi,
We are trying to create pdf from the JMIX Reports with Hindi language fonts. As you can see in the attachment, we have written Hindi characters in the template. When we run this report as HTML output, it is showing properly. Same has been attached.
But when we are trying to run as PDF output, the hindi characters are not visible.
Please guide as step by step. How can we achieve this?
Regards,
Aashif
Hello,
Application properties are configured in your project code. You need to open your project and find the application.properties
file. In this file you need to add jmix.reports.pdfFontsDirectory
. In this property you need to specify the path to the fonts on your server or on your computer.
For example (Windows):
jmix.reports.pdfFontsDirectory = C:/Windows/Fonts
Regards,
Nikita
After setting this path how we are going to call in the template. Will it be directly linked to the template or we have to add some config line in the template editor
Yes, of course, after adding the font to your computer, you also need to add it to the template, for example:
Template:
Fonts - Noto Sans Devanagari - Google Fonts
Docs - Report Template :: Jmix Documentation
Hi,
Thank you so much!!! now its working fine…
Regards
Aashif
Hi Team,
i am stuck to pass a parameter in report template (pdf).
I have attached some image for your reference .
Thanks and Regards
Hello,
You need to move the parameter to the report bar. For example, let’s use a Groovy script.
Band:
Template:
Regards,
Nikita