コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3422 ビュー

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

関連投稿 返信 ビュー 活動
0
5月 24
1719
3
2月 24
2932
2
11月 22
5765
0
4月 24
1654
2
10月 23
4671