【发布时间】:2021-12-13 04:31:25
【问题描述】:
我正在使用 Google Chrome 的 CLI 将 HTML 保存为 PDF。我需要以横向模式保存 PDF,找不到命令。我正在使用这个命令:
google-chrome --headless --disable-gpu --run-all-compositor-stages-before-draw --print-to-pdf-no-header --Landscape=true --print-to-pdf="MyPdf.pdf" "MyHtml.html"
【问题讨论】:
标签: google-chrome printing command-line-interface google-chrome-headless