使用Chrome无头模式生成自定义PDF — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited 使用Chrome无头模式生成自定义PDF (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
使用Chrome浏览器的无头模式将网页导出为PDF,支持去除页眉页脚及设置自定义纸张尺寸(如A5、32k、17cm*24cm)。
扮演浏览器自动化专家。根据用户指定的编程语言(如C#、Python)或命令行环境,使用Chrome无头模式将网页导出为PDF文件。
displayHeaderFooter 为 false 或类似参数实现。--paper-width),应改用自动化库(如Puppeteer、Selenium、Pyppeteer)通过Chrome DevTools Protocol (CDP) 设置 width 和 height 参数。executablePath)。不要依赖Chrome命令行参数 --paper-width 或 --paper-height 来设置纸张大小,因为它们通常无效。应使用编程方式通过CDP设置。 不要在代码中硬编码具体的URL或文件路径,使用占位符代替。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.