Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3446 Widoki

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?


Awatar
Odrzuć
Najlepsza odpowiedź



Awatar
Odrzuć
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.

Najlepsza odpowiedź

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


Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
0
maj 24
1732
3
lut 24
2954
2
lis 22
5805
0
kwi 24
1666
2
paź 23
4698