← 返回 Skills 市场
goog

web page to pdf

作者 Jay · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
157
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install convert-pdf
功能描述
Convert web pages to PDF files using Playwright, saving them in A4 format with margins after fully loading the page.
使用说明 (SKILL.md)

Web to PDF Converter

Convert web pages to PDF files using Playwright.

Usage

python pdf2.py \x3Curl> [output_filename]

Examples

# Convert a webpage to PDF (uses domain name as filename)
python pdf2.py https://example.com

# Specify custom output filename
python pdf2.py https://example.com my-document.pdf

# Short URL (https:// is added automatically)
python pdf2.py example.com output.pdf

Setup

If playwright is not installed:

pip install playwright
playwright install chromium

Script Location

The script is located at: skills/web2pdf/scripts/pdf2.py

Notes

  • The script uses Chromium via Playwright for accurate rendering
  • Waits for network idle before PDF generation to ensure page is fully loaded
  • Output is saved to the current working directory
  • A4 format with 20px margins is used by default
安全使用建议
This skill appears to do exactly what it claims: open a URL in a Playwright-driven Chromium instance and save a PDF. Before using it, consider: 1) Only convert trusted or internal-allowed URLs — the browser will execute page JavaScript and make network requests which could contact external or internal services (SSRF risk). 2) Run the tool in a sandboxed environment or an isolated container if you plan to convert untrusted sites. 3) Be aware that installing Playwright will download browser binaries (large) and that PDF output is written to the current working directory. 4) If you need stricter controls, validate/whitelist URLs, limit network access for the process, or run it on a separate VM. The code itself contains no hidden endpoints or credential exfiltration logic.
功能分析
Type: OpenClaw Skill Name: convert-pdf Version: 1.0.0 The skill provides a legitimate utility for converting web pages to PDF using the Playwright library. The Python script (scripts/pdf2.py) and the instructions in SKILL.md are consistent with the stated purpose and do not contain any indicators of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included script all align: the script uses Playwright/Chromium to load a URL and save an A4 PDF with margins. No unrelated binaries, environment variables, or capabilities are requested.
Instruction Scope
Instructions and script stay on-purpose (invoke python pdf2.py <url>). The script navigates to the provided URL and writes a PDF to the current working directory. Important caveats: the browser executes page JS and fetches resources from the network, so rendering arbitrary/untrusted URLs can cause outbound network activity (and may reach internal network endpoints), and the page content may trigger large downloads or heavy CPU usage. The SKILL.md does not instruct any unrelated file reads, env access, or external posting.
Install Mechanism
No automatic install spec is included (instruction-only). SKILL.md suggests running 'pip install playwright' and 'playwright install chromium' if needed — this is a standard, explicit manual setup step and not an automated download-from-arbitrary-URL install. Note: installing Playwright downloads browser binaries which are large but expected for this capability.
Credentials
The skill requests no environment variables, no credentials, and no config paths. The script does not read secrets or external environment state. This is proportionate to its stated function.
Persistence & Privilege
Skill is not always-enabled and allows normal model invocation. It does not modify other skills or system-wide agent settings and does not request persistent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install convert-pdf
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /convert-pdf 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the web2pdf skill for converting web pages to PDF files. - Supports converting a webpage from a URL or short domain to PDF using Playwright. - Allows optional custom output filenames, with default filenames based on the domain. - Ensures pages are fully loaded before conversion by waiting for network idle. - Generated PDFs use A4 format with 20px margins and are saved to the current directory. - Easy setup instructions provided for Playwright and script usage.
元数据
Slug convert-pdf
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

web page to pdf 是什么?

Convert web pages to PDF files using Playwright, saving them in A4 format with margins after fully loading the page. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 157 次。

如何安装 web page to pdf?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install convert-pdf」即可一键安装,无需额外配置。

web page to pdf 是免费的吗?

是的,web page to pdf 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

web page to pdf 支持哪些平台?

web page to pdf 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 web page to pdf?

由 Jay(@goog)开发并维护,当前版本 v1.0.0。

💬 留言讨论