batch-to-pdf

Compile a batch of captured web articles into a single typeset PDF using Typst.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/danielrosehill/Claude-Local-Web-Capture-Plugin --skill batch-to-pdf-danielrosehill
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: batch-to-pdf
Source: https://github.com/danielrosehill/Claude-Local-Web-Capture-Plugin/tree/main/skills/batch-to-pdf
Command: npx skills add https://github.com/danielrosehill/Claude-Local-Web-Capture-Plugin --skill batch-to-pdf-danielrosehill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires typst, and includes assets (resource) components.

What problem does it solve? Turning a folder of scraped article captures into a printable, shareable document normally requires manual copy-pasting and formatting. This Skill compiles an entire capture batch into one professionally typeset PDF with a cover page, table of contents, per-article source metadata, and page-numbered footers. ## Core Features & Use Cases - Batch compilation: Reads the structured report.agent.json manifest from a capture batch and renders every article into a single PDF via Typst. - Rich document structure: Generates a cover page, table of contents, per-article sections with clickable source URLs, capture timestamps, domain, language, word count, and extractor metadata. - Flexible input: Accepts an existing batch id, a plain batch directory, or a list of URLs (running batch-capture first). - Use Case: After scraping 20 news articles with batch-capture, produce one PDF compendium with source attribution on every article to share with colleagues or archive for research. ## Quick Start Compile the batch with id 2024-06-news into a PDF report and open it when finished.

Frequently Asked Questions about batch-to-pdf

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

FAQPage Schema
How do I convert a batch of scraped articles into a single PDF?▼

Run the batch-to-pdf skill with a batch id or batch directory containing report.agent.json and an articles folder. It invokes typst compile with the bundled template to produce report.pdf with a cover, table of contents, and one section per article.

What tool does this skill use to generate PDFs from markdown captures?▼

It uses Typst, a typesetting system, driven by a bundled template at assets/typst/batch-report.typ. The template reads the batch manifest JSON and article files via absolute paths passed as --input values.

What do I need installed before compiling a batch to PDF?▼

The typst CLI must be on PATH, installable via cargo install typst-cli or brew install typst. The batch directory must also contain a well-formed report.agent.json manifest, which batch-capture generates.

Why does typst compile fail when building the batch report?▼

Failures usually come from a missing article file referenced in the manifest or a JSON field mismatch in report.agent.json. The skill surfaces Typst stderr so you can fix the manifest or restore the missing capture file.

Can I use pandoc or wkhtmltopdf instead of Typst for the batch report?▼

No. The skill explicitly does not fall back to wkhtmltopdf or pandoc when Typst is missing. It asks you to install Typst instead, since the bundled template and layout depend on it.