Install
openclaw skills install @goog/convert-pdfopenclaw skills install @goog/convert-pdfConvert web pages to PDF files using Playwright.
python pdf2.py <url> [output_filename]
# 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
If playwright is not installed:
pip install playwright
playwright install chromium
The script is located at: skills/web2pdf/scripts/pdf2.py