帮助

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

打印单样式丢失问题

形象
张康斌

Wkhtmltopdf打印插件已安装的情况下,发现样式丢失了,如下图


形象
丢弃
1 答案
0
形象
张康斌
最佳答案

1、可能是外网与内网服务转换时候造成的样式丢失,有时候是端口不一致导致的某些服务不能正常使用;

2、wkhtmltopdf 中文显示空白或者乱码方框,缺少中文字体;

 

原因1解决办法:

1、方法一:如果分内外网的话,在系统参数里面的web.base.url 改成内网的ip+端口;

2、方法二:或者新增一个report.url的系统参数:参数设置同上内网的ip+端口;

原因2解决办法:

网络上下载宋体(simsun.ttc)文件
上传到服务器的 /usr/share/fonts/文件夹下
解决方法二: # sudo apt-get install fonts-wqy-zenhei # sudo apt-get install fonts-wqy-microhei


形象
丢弃