Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
2760 Weergaven

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
Annuleer
Beste antwoord



Avatar
Annuleer
Auteur

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.

Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
mei 24
1260
3
feb. 24
2361
2
nov. 22
5244
0
apr. 24
1165
2
okt. 23
4043