wkhtmltopdf +混合照片颜色 [英] wkhtmltopdf + mixed photo colors

查看:254
本文介绍了wkhtmltopdf +混合照片颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个颜色和黑色&的页面白色图像,当我使用wkhtmltopdf从html文件生成pdf时,

I have a page with color and black & white images, when I use wkhtmltopdf to generate a pdf from the html file,

我只得到彩色图像,如何让它打印所有图像,我已经尝试过预选项,但没有成功。

I get only the color images, how can I get it to print all the images, I have tried the advance options, but no success.

如果我以灰度打印,那么所有图像都会出现,但我不想要灰度。

If I print in grayscale, then all the images are coming, but I don't want grayscale.

任何帮助?

推荐答案

我想出了如何解决这个问题,我试过了一个试错法,并且发现如果我们提供以下参数所有图像,无论颜色或B& W,它都会出现

I figured out how to solve this problem, I tried a trial-and-error method and figured out that if we provided the following parameters all the images irrespective of color or B&W, it would come up

wkhtmltopdf - 图像质量75

wkhtmltopdf --image-quality 75

注意:任何值< = 75都有效,较高的值仅为B& W图像打印空白

NOTE: Any value <= 75 works, higher value print a blank space for B&W images only

这篇关于wkhtmltopdf +混合照片颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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