web-to-pdf

Convert webpages and first-level linked pages into a formatted PDF with images.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/alexzuosh/alex_skills --skill web-to-pdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-to-pdf
Source: https://github.com/alexzuosh/alex_skills/tree/main/web-to-pdf
Command: npx skills add https://github.com/alexzuosh/alex_skills --skill web-to-pdf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, beautifulsoup4, reportlab, lxml, Pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of converting entire webpages, including all their linked content and images, into a single, well-formatted PDF document.

Core Features & Use Cases

  • Comprehensive Archiving: Captures root pages and all first-level linked pages with their content and images.
  • Full Image Embedding: Extracts and embeds all images from all captured pages into the final PDF.
  • Multi-language Support: Natively handles Chinese and other languages with perfect character rendering.
  • Use Case: Archive an entire online documentation site, a collection of blog posts, or a complex Chinese website into a single, navigable PDF for offline reference.

Quick Start

Use the web-to-pdf skill to scrape https://example.com and create a PDF.

Frequently Asked Questions about web-to-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a webpage to PDF with all images included?

To convert a webpage to PDF with full image support, this Skill automates web scraping, extracts images from root and first-level linked pages, and embeds them directly into a formatted PDF document.

Does web archiving into PDF support Chinese and other multi-language content?

Yes, web archiving into PDF natively supports Chinese and other multi-language content, ensuring perfect character rendering during the scraping and PDF generation process.

What is the best way to archive an entire online documentation site for offline access?

The best way to archive online documentation is using this Skill to scrape the root page and all first-level linked pages, compiling the entire content and images into a single navigable PDF for offline reference.

Can I use BeautifulSoup to scrape linked pages and generate a PDF?

Yes, the process uses BeautifulSoup and lxml for scraping linked pages, Pillow for image extraction, and reportlab to generate the final formatted PDF document automatically.

How to extract images from webpages and embed them in a PDF?

To extract images from webpages and embed them in a PDF, the Skill fetches root and first-level pages, pulls all images using Pillow, and formats them into the final reportlab-generated PDF.

What are the limitations of scraping first-level linked pages for a single PDF?

A limitation of scraping first-level linked pages is that it only captures the root page and its immediate links, meaning deeper nested pages will not be included in the final generated PDF document.