pdf

Creates and processes PDFs from HTML, LaTeX, and existing files.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill pdf-haomingz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/pdf
Command: npx skills add https://github.com/haomingz/kimi-skills --skill pdf-haomingz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, pikepdf, pdfplumber.

What problem does it solve?

Professional PDF creation and processing can be tedious and error-prone; this Skill provides an integrated solution for generating PDFs from HTML and LaTeX, and for processing existing PDFs via Python tools.

Core Features & Use Cases

  • HTML to PDF conversion using HTML + Playwright + Paged.js with support for KaTeX math, Mermaid diagrams, and advanced layouts.
  • Process existing PDFs (read, extract, merge, split, fill forms) using Python libraries (pikepdf, pdfplumber) and a unified CLI.
  • LaTeX route for native PDF generation with cross-references, hyperlinks, and bookmarks, enabling high-quality academic or professional documents.

Quick Start

Convert an HTML document to PDF with the HTML route by running the HTML-to-PDF script on your input file.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I convert HTML to PDF with KaTeX math and Mermaid diagrams?▼

To convert HTML to PDF with KaTeX and Mermaid, this tool renders your input using Playwright and Paged.js. It directly executes HTML-to-PDF conversion, processing advanced layouts, mathematical notation, and diagrams automatically.

Can I extract text and merge existing PDF files using Python?▼

Yes, you can extract text and merge existing PDF files using Python. The Skill utilizes pikepdf and pdfplumber to read, split, merge, and fill forms in existing PDFs through a unified CLI.

What is the best way to generate academic PDFs from LaTeX?▼

The best way to generate academic PDFs from LaTeX is using the native LaTeX route. It builds high-quality documents with cross-references, hyperlinks, and bookmarks directly for professional workflows.

Does HTML to PDF conversion support advanced page layouts and pagination?▼

Yes, HTML to PDF conversion supports advanced page layouts and pagination. It leverages Paged.js alongside Playwright to properly format professional documents, handling complex pagination requirements during rendering.

Do I need Playwright installed to process existing PDF documents?▼

No, you do not need Playwright to process existing PDFs. Playwright is required for HTML rendering, while PDF processing like text extraction, merging, and form filling relies on pikepdf and pdfplumber.