What problem does it solve?
This Skill consolidates HTML-based and LaTeX-based PDF generation workflows with robust processing of existing PDFs. It streamlines academic and professional document creation by combining web-based rendering, LaTeX typesetting, and Python-based PDF manipulation into a single, repeatable pipeline.
Core Features & Use Cases
- HTML to PDF: Convert HTML content into polished PDFs using Playwright + Paged.js, with support for diagrams (Mermaid) and math (KaTeX) while preserving layout.
- LaTeX via Tectonic: Compile LaTeX sources into publication-ready PDFs with log filtering and per-PDF statistics.
- Process Existing PDFs: Read, extract text/tables/images, merge/split pages, and edit metadata or form fields using a unified CLI.
- Use Case: A research group autogenerates conference papers from HTML drafts, then refines figures and equations, all within a single workflow.
Quick Start
Use the pdf skill to convert a document.html to PDF, or to compile main.tex, or to process an existing PDF via the unified CLI. Example commands: pdf.sh html document.html; pdf.sh latex main.tex; pdf.sh process info document.pdf.