google-chrome - chrome headless print-to-pdf has poor quality
问题描述
Use this command to convert html to pdf:
google-chrome-stable --headless --print-to-pdf-no-header --disable-gpu --print-to-pdf --run-all-compositor-stages-before-draw https://image.taidii.cn/upload/portfoliov6/2020_09_22_15_11_38_56026bdb-d914-4673-86c1-0dc27ffcfad3.html?is_hd=1
use print and you can see this one is much better. So do i miss any headless options, can anyone tell me? Thanks!!!
解决方案
推荐阅读
- anylogic - 复制 e 以正确的顺序粘贴多个矩形节点
- r - 按组查找时间间隔中的重叠并返回子集 data.frame
- android-studio - Android Studio 不会抓取 svg 图片
- ruby-on-rails - 提交表单时没有任何反应
- windows - 使用自签名证书对内核驱动程序 (.sys) 进行签名以在不禁用 Windows 上的签名强制的情况下加载
- typescript - 使用 ConstructorParameters 扩展泛型类?
- node.js - 使用 passport-jwt 进行 JWT 身份验证不考虑到期日期
- python - 刚刚更新到 VSCode 1.58.2,不能再调试以前工作的 python 代码
- javascript - 如何使用 javascript 从 Firebase rt-db 过滤数据
- html - 如何同时使用 col 和 rowspan?