Skip to Content
Menú
This question has been flagged
2 Respostes
3406 Vistes

I have created a QWeb template for PDF report. Can i use a custom font for it. I have tried downloading font and creating SCSS file. but it didn't work. Is there any other ways to do it?


Avatar
Descartar
Best Answer



Avatar
Descartar
Autor

When I give like this, the font is changed in HTML format. but when i download PDF file, font isn't changing.

Which PDF report did you modify? How did you modify it? In some cases we have QWEB applicable to just the PDF version and some applicable just to the Portal version.

Best Answer

Hi,


To change the font, we can use the following code in our template,


<div class="page" style="font-size: 18pt;font-family:Helvetica,Verdana,Arial,sans,Lucida Grande,Calibri;">


Hope it helps


Avatar
Descartar
Autor

This method isn't working. I am using odoo v17

Related Posts Respostes Vistes Activitat
0
de maig 24
1712
3
de febr. 24
2921
2
de nov. 22
5757
0
d’abr. 24
1641
2
d’oct. 23
4659