Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
3483 Ansichten

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
Verwerfen
Beste Antwort



Avatar
Verwerfen
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.

Beste Antwort

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
Verwerfen
Autor

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Mai 24
1764
3
Feb. 24
2973
2
Nov. 22
5836
0
Apr. 24
1690
2
Okt. 23
4720