stars
1
forks
3
last update
Apr 18, 2026
license
MITv1.0.0
// Drops SKILL.md into ~/.claude/skills/
$ claude skills add jamesxjz-html-to-pdf-agent-skill// Run from any project directory
$ claude --skill jamesxjz-html-to-pdf-agent-skill "help me ship this"// extracted python block
$ from playwright.sync_api import sync_playwright
def html转pdf(网址, 输出路径, **选项):
with sync_playwright() as p:
浏览器 = p.chromium.launch()
页面 = 浏览器.new_page()将远程HTML网页转换为本地PDF文件,支持身份验证、自定义请求头、JavaScript渲染和CSS样式。支持单页转换和完整文档转换(自动爬取侧边栏所有子页面)。当用户需要下载网页为PDF、转换HTML到PDF、保存网页内容为文档、或提到完整文档/所有章节时使用。
Loading README…
$ cat reviews/