lzjun567 / python_scripts

一些python相关的演示代码
Apache License 2.0
717 stars 528 forks source link

为什么我转出来的pdf字体那么小呢? #11

Open jiangeel opened 7 years ago

jiangeel commented 7 years ago

2017-03-14 23 23 24

在html的时候是正常的,应该是转pdf的时候变了,是options设置不对吗? 2017-03-14 23 28 36

在Mac下做的。

lzjun567 commented 7 years ago

字体可以设置的

mahomeL commented 7 years ago

@jiangeel this is a problem on mac because of retina see this https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3241 you can fit it by adding 'dpi':350 in options . enjoy it!

cherryz commented 7 years ago

@mahomeL 我是macbook air2014,不是retina屏幕,字体也是小的很

mahomeL commented 7 years ago

@cherryz 在options里面添加 'dpi':350

cherryz commented 7 years ago

@mahomeL 已解决,感谢!

jiangeel commented 7 years ago

@mahomeL 已解决,感谢!