← Back to Skills Marketplace
157
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install convert-pdf
Description
Convert web pages to PDF files using Playwright, saving them in A4 format with margins after fully loading the page.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install convert-pdf - After installation, invoke the skill by name or use
/convert-pdf - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is web page to pdf?
Convert web pages to PDF files using Playwright, saving them in A4 format with margins after fully loading the page. It is an AI Agent Skill for Claude Code / OpenClaw, with 157 downloads so far.
How do I install web page to pdf?
Run "/install convert-pdf" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is web page to pdf free?
Yes, web page to pdf is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does web page to pdf support?
web page to pdf is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created web page to pdf?
It is built and maintained by Jay (@goog); the current version is v1.0.0.
More Skills