تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3428 أدوات العرض

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
مايو 24
1725
3
فبراير 24
2940
2
نوفمبر 22
5766
0
أبريل 24
1657
2
أكتوبر 23
4674