Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3451 Переглядів

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?


Аватар
Відмінити
Найкраща відповідь



Аватар
Відмінити
Автор

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.

Найкраща відповідь

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


Аватар
Відмінити
Автор

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

Related Posts Відповіді Переглядів Дія
0
трав. 24
1733
Sale Order PDF Report Вирішено
3
лют. 24
2955
2
лист. 22
5814
0
квіт. 24
1669
2
жовт. 23
4704