English 中文(简体)
Wkhtmltopdf
原标题:Wkhtmltopdf font size increased after update

I just updated wkhtmltopdf from 0.9.9 to 0.11.0 rc1 (downloaded the binary and just moved to /usr/bin/wkhtmltopdf-new having in /usr/bin/wkhtmltopdf the one from repositories)

If I run /usr/bin/wkhtmltopdf-new I get very large fonts as results/ If I run /usr/bin/wkhtmltopdf I get the normal results.

Example using the same HTML This is a document with 0.9.9 http://dl.dropbox.com/u/1990697/0.9.9.pdf The same document with 0.11.0 rc1 http://dl.dropbox.com/u/1990697/0.11.0.pdf

我想达到我拿出0.9.9的结果。

任何想法?

Cheers.

最佳回答

很明显,。 这个问题与QT有关,可在上同时处理。

一项工作是

@font-face {
    font-family:  mysans ;
    src: url(/path/to/myfont.otf);
}

Finally, there is an online service to convert TTF fonts into OTF fonts.

So the best workaround for now seems to be: Get your font as a TTF, convert it to OTF with the mentioned service, and use it as specified above.

在一份申请中,我同时向浏览器投送超文本,使之成为PDF。 在此情况下,我利用一些服务器的逻辑,与WOFF一道生成一个网络信标,向浏览器投递,并与OTF一道建立一个网络信标,向Wkhtmltopdf投递。

OTF的字体工作的原因是,这些字体在PDF和有关。

问题回答

暂无回答




相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签