Install
openclaw skills install convert-pdfConvert web pages to PDF files using Playwright, saving them in A4 format with margins after fully loading the page.
openclaw skills install 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