# Url2pdf

> Convert URL to PDF suitable for mobile reading.

- Skill: `guoqiao/url2pdf` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add guoqiao/url2pdf`
- Raw SKILL.md: https://api.skillmd.com/api/skills/guoqiao/url2pdf/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: guoqiao (https://skillmd.com/u/guoqiao)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/guoqiao/url2pdf

---


# URL to PDF

Given a url for a webpage, convert it to pdf suitable for mobile reading.

See [examples](https://github.com/guoqiao/skills/tree/main/url2pdf/examples).

## Requirements

- `uvx`

## Installation

`uvx` will install `shot-scraper` automatically on first run.
No explicit installation needed.

## Usage

```bash
bash ${baseDir}/url2pdf.sh "${url}"
```
Path to pdf will be printed to stdout.

### Agent Instructions

1. **Run the script**: Pass the url as an argument.
2. **Handle Output**: The script will output a path to a pdf file.
3. Use the `message` tool to send the pdf file to the user as a document message:
```json
{
   "action": "send",
   "filePath": "<filepath>"
}
```
