Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4885 มุมมอง

I have relocated my Odoo v11 CE from AWS Ubuntu 16.04 to Digital Ocean 18.04. All of the reports have a larger font on the new server (18.04): Invoices, Sales Orders, financial reports (both built-in Odoo and OCA), WH-IN and WH-OUT documents, etc. all have a bigger font size than on the old server (16.04) (in the report header, footer, and body).

The same version of wkhtmltopdf is installed on both servers: 

wkhtmltopdf 0.12.5 (with patched qt)

Does anyone know how to fix this? Is there a default font size for Ubuntu that Odoo reads and uses? There's too many reports to fix manually.


อวตาร
ละทิ้ง

I think this will be related to the WKhtml. Uninstall all wkhtml patches and reinstall the Odoo recommended version from the given links.

ผู้เขียน

Thanks Hilar -- we had already tried uninstalling/reinstalling.

คำตอบที่ดีที่สุด

Hi MAX
wkhtmltopdf use underlying OS system font using fc-match if exact font package not found then it fallback to near closest match font.

ref: https://github.com/Surnet/docker-wkhtmltopdf/issues/1
to solve this issue installed relevant font in OS

To fix this issue install -> apt-get install fonts-urw-base35
 

อวตาร
ละทิ้ง
ผู้เขียน

Perfect fix — thank you, Ravi!

Related Posts ตอบกลับ มุมมอง กิจกรรม
Include a picture in a PDF report แก้ไขแล้ว
2
ส.ค. 25
4606
1
พ.ค. 24
1905
0
ก.ย. 20
2801
1
ส.ค. 25
499
1
เม.ย. 25
1519