pdf

Convert, extract, and edit PDF content using Python libraries.

332|99|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/dnnyngyen/kimi-agent-internals --skill pdf-dnnyngyen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/dnnyngyen/kimi-agent-internals/tree/main/source-code/skills/pdf
Command: npx skills add https://github.com/dnnyngyen/kimi-agent-internals --skill pdf-dnnyngyen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, pikepdf, pdfplumber, pypdf, LibreOffice, tectonic, and includes scripts (resource) components.

What problem does it solve?

This Skill automates end-to-end PDF workflows: from HTML-to-PDF rendering and LaTeX compilation to programmatic PDF reading, editing, and metadata management. It enables teams to generate polished PDFs, extract structured data from documents, and automate archiving tasks without manual repetitive steps.

Core Features & Use Cases

  • HTML to PDF: Create paginated PDFs from HTML sources using a Playwright-based route with KaTeX mermaid support and automated overflow checks.
  • PDF Processing: Read and modify PDF content, extract text/tables/images, merge/split pages, rotate/crop, and manipulate metadata.
  • LaTeX Integration: Compile LaTeX sources via the provided compile_latex.py script, with log filtering and PDF statistics.
  • Use Case: A researcher converts a research note in HTML to PDF, extracts tables, and packages the results for publication.

Quick Start

Use the pdf skill to convert an example HTML file named document.html to document.pdf.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract tables and text from PDF files in Python?

PDF table and text extraction is automated using pdfplumber and pypdf to read structured content. This workflow handles programmatic reading of documents to isolate text, tables, and images for downstream data analysis.

What is the best way to convert HTML to PDF with pagination and overflow checks?

HTML to PDF conversion is handled via a Playwright-based route with KaTeX and mermaid support. The workflow applies automated overflow checks to ensure paginated documents render correctly without cutting off content.

Can I compile LaTeX sources to PDF and extract compilation statistics?

LaTeX compilation to PDF is executed via the compile_latex.py script using Tectonic. The process applies log filtering and returns PDF statistics to verify the compilation output.

Does this PDF processing workflow support merging, splitting, and metadata manipulation?

PDF processing supports merging, splitting, rotating, and cropping pages using pikepdf. The workflow also manipulates metadata to automate archiving tasks and document management operations.

Do I need LibreOffice to convert office documents to PDF?

LibreOffice is required for specialized office document conversions to PDF. This dependency enables reliable conversion of office workflows into structured PDF outputs for further extraction.