如何使用 wkhtmltopdf 根据图像质量控制 pdf(S、M、L)的文件大小?
How Can I control file size of pdf (S, M, L) based on image quality using wkhtmltopdf?
我必须根据图像或内容质量来控制 PDF 大小,如何使用 wkhtmltopdf shell 实用工具来实现。
基于help section您可以使用--image-quality <integer>
参数来控制图像的质量。将 <integer>
替换为 1 到 100 之间的数字,其中 100 是最佳质量。我建议尝试 80,有时 70 仍然可以提供可接受的结果,但这取决于图像。
我必须根据图像或内容质量来控制 PDF 大小,如何使用 wkhtmltopdf shell 实用工具来实现。
基于help section您可以使用--image-quality <integer>
参数来控制图像的质量。将 <integer>
替换为 1 到 100 之间的数字,其中 100 是最佳质量。我建议尝试 80,有时 70 仍然可以提供可接受的结果,但这取决于图像。