Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3510 Zobrazení

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
Zrušit
Nejlepší odpověď



Avatar
Zrušit
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.

Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
0
kvě 24
1797
3
úno 24
3013
2
lis 22
5881
0
dub 24
1740
2
říj 23
4806