DOMPDF文本比普通字体粗体 [英] DOMPDF text is bolder than normal

查看:143
本文介绍了DOMPDF文本比普通字体粗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白为什么DOMPDF中的字体颜色比正常字体粗。



jsfiddle与html



将HTML与DOMPDF进行比较的图像:



感谢您的帮助。



我做了一个转换所有PNG的函数。转换为JPG,就解决了问题。

如果您不选择PNG或JPG格式,这很好。



感谢BrianS


I cant understand why the font color in DOMPDF is bolder than normal.

jsfiddle with the html

Image comparing HTML to DOMPDF:

Thanks for the help.

解决方案

As BrianS said, the cause for the problem is PNG 8 bit.

I made a function which converts all PNGs to JPGs and that solved the problem.
This is good if you don't which format it is > PNG or JPG.

Thanks BrianS.

这篇关于DOMPDF文本比普通字体粗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆