Web to PDF

Convert any webpage to a clean, high-quality PDF file and send it directly. Use when the user asks to view a website, screenshot a webpage, or see a page's content. Exports the webpage using browser PDF functionality for crystal-clear results.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Web to PDF" with this command: npx skills add huchiyv/web-to-pdf

When to Use

Use this skill when:

  • User asks "let me see this website" or "show me this page"
  • User requests a screenshot of a webpage
  • User wants to view or save webpage content
  • You need to send a webpage as a file to the user

This approach is better than screenshots because:

  • ✅ Maximum clarity and legibility (PDF preserves all formatting)
  • ✅ Preserves text, links, and structure
  • ✅ Compact file format
  • ✅ Professional appearance
  • ✅ Easy to save, print, or share

Workflow

Step 1: Navigate to the URL

Use the browser tool to open the webpage:

browser action=navigate url=https://example.com

Wait for the page to fully load.

Step 2: Export to PDF

Use the browser tool's PDF export:

browser action=pdf

This returns a file path like: FILE:/home/user/.openclaw/media/browser/uuid.pdf

Step 3: Send the PDF File

Use the message tool to send the file directly to the user:

message action=send filePath=/path/to/file.pdf message="Here's the webpage as a PDF!"

Step 4: Clean Up (Important!)

Delete the local PDF file immediately after sending to save space:

exec command=rm /path/to/file.pdf

Or in one line:

exec command=rm /path/to/file.pdf && echo "✅ PDF cleaned up"

Why This Workflow

AspectWhy
PDF formatPreserves layout, fonts, colors, and links perfectly
Browser toolNative PDF export ensures compatibility
Direct file sendUser gets the file immediately, no compression artifacts
Cleanup stepRespects workspace storage and keeps things tidy

Common Patterns

Pattern 1: User says "show me this website"

1. browser navigate <URL>
2. browser pdf
3. message send filePath=<result> message="Here's the website as PDF"
4. exec rm <result>

Pattern 2: User asks for a screenshot

1. browser navigate <URL>
2. browser pdf (better than screenshot!)
3. message send filePath=<result> message="PDF view of the webpage"
4. exec rm <result>

Pattern 3: Multiple pages/links

If the user wants multiple webpages:

  • Repeat steps 1-4 for each URL
  • Or export all to PDF in a batch script (see scripts/batch-export.sh)

Error Handling

Page fails to load

browser wait --url "**/expected-path" --timeout-ms 10000

PDF export fails

The browser might be in headless mode or network issue. Try:

browser status
browser start (if not running)
browser navigate <URL>

File not accessible

Check the path returned by browser pdf. If it's a relative path, convert to absolute:

exec command=realpath <path>

Tips

  • For long pages: PDF preserves entire page length, so large documents are still readable
  • For dynamic content: Wait for dynamic content to load before exporting
  • For mobile view: Use browser resize 375 812 before PDF export if mobile view is needed
  • For specific sections: Export full PDF, user can crop or extract what they need

Related Skills

  • browser — OpenClaw's native browser automation
  • screenshot — Fallback if PDF export isn't suitable (rarely needed)

Feedback & Updates

  • Star this skill: clawhub star web-to-pdf
  • Check for updates: clawhub sync web-to-pdf

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Leads

Leads - command-line tool for everyday use

Registry SourceRecently Updated
General

Bmi Calculator

BMI计算器。BMI计算、理想体重、健康计划、体重追踪、儿童BMI、结果解读。BMI calculator with ideal weight, health plan. BMI、体重、健康。

Registry SourceRecently Updated
General

Blood

Blood — a fast health & wellness tool. Log anything, find it later, export when needed.

Registry SourceRecently Updated
General

Better Genshin Impact

📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI A better genshin impact, c#, auto-play-game, automatic, g...

Registry SourceRecently Updated