Install
openclaw skills install web-to-pdfConvert 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 c...
openclaw skills install web-to-pdfUse this skill when:
This approach is better than screenshots because:
Use the browser tool to open the webpage:
browser action=navigate url=https://example.com
Wait for the page to fully load.
Use the browser tool's PDF export:
browser action=pdf
This returns a file path like: FILE:/home/user/.openclaw/media/browser/uuid.pdf
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!"
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"
| Aspect | Why |
|---|---|
| PDF format | Preserves layout, fonts, colors, and links perfectly |
| Browser tool | Native PDF export ensures compatibility |
| Direct file send | User gets the file immediately, no compression artifacts |
| Cleanup step | Respects workspace storage and keeps things tidy |
1. browser navigate <URL>
2. browser pdf
3. message send filePath=<result> message="Here's the website as PDF"
4. exec rm <result>
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>
If the user wants multiple webpages:
scripts/batch-export.sh)browser wait --url "**/expected-path" --timeout-ms 10000
The browser might be in headless mode or network issue. Try:
browser status
browser start (if not running)
browser navigate <URL>
Check the path returned by browser pdf. If it's a relative path, convert to absolute:
exec command=realpath <path>
browser resize 375 812 before PDF export if mobile view is neededbrowser — OpenClaw's native browser automationscreenshot — Fallback if PDF export isn't suitable (rarely needed)clawhub star web-to-pdfclawhub sync web-to-pdf