minimax-pdf

Generate, fill, and reformat designed PDF documents using a token-based design pipeline.

1|Updated Jul 13, 2026
One-click install
npx skills add https://github.com/HalseyYang/Skills-HY --skill minimax-pdf-halseyyang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimax-pdf
Source: https://github.com/HalseyYang/Skills-HY/tree/main/minimax-pdf
Command: npx skills add https://github.com/HalseyYang/Skills-HY --skill minimax-pdf-halseyyang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reportlab, pypdf, matplotlib, playwright, and includes scripts (resource) components.

What problem does it solve? Producing visually polished, print-ready PDFs usually requires manual layout work in design tools, and filling existing PDF forms programmatically is tedious. This Skill automates both: it generates styled PDFs from structured content, fills form fields in existing PDFs, and reformats existing documents with a consistent design system. ## Core Features & Use Cases - CREATE: Generate a new PDF from a content.json file with 15 document types (report, proposal, resume, academic, magazine, terminal, poster, etc.), each with its own cover pattern, palette, and Google Fonts pairing. Supports headings, tables, charts, flowcharts, math formulas, code blocks, and bibliographies. - FILL: Inspect and fill form fields (text, checkbox, dropdown, radio) in an existing PDF without altering its layout. - REFORMAT: Parse an existing Markdown, text, PDF, or JSON document and re-render it with the full design pipeline. - Use Case: A consultant needs a client-ready quarterly strategy report. They provide the content blocks, choose the report type with a navy accent, and receive a merged PDF with a designed cover page and consistently styled body pages. ## Quick Start Ask the AI to generate a professional report PDF titled "Q3 Strategy Review" of type proposal with your content, and it will run the pipeline to produce the final document.

Frequently Asked Questions about minimax-pdf

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

FAQPage Schema
How do I generate a styled PDF from Python?

Run the make.sh run command with a title, document type, and a content.json file describing blocks like headings, paragraphs, tables, and charts. The pipeline generates design tokens, renders an HTML cover via Playwright, builds body pages with ReportLab, and merges them into one PDF.

How do I fill form fields in an existing PDF?

First run fill_inspect.py on the PDF to list all field names, types, and allowed values. Then run fill_write.py with a JSON object mapping field names to values; checkboxes take true or false, and dropdowns must match an existing choice value.

What dependencies are required for PDF generation with this pipeline?

You need Python 3.9+ with reportlab, pypdf, and matplotlib, plus Node.js 18+ with Playwright and a Chromium browser for cover rendering. Run make.sh check to verify everything and make.sh fix to auto-install missing packages.

Can I convert a Markdown document into a designed PDF?

Yes, the reformat command accepts .md, .txt, .pdf, and .json inputs. It parses the source into the content.json schema and then runs the full create pipeline with your chosen document type, title, and accent color.

What are the limitations of the math and chart rendering?

Math formulas use matplotlib mathtext, which covers common LaTeX expressions but not advanced environments like align, cases, or matrix. Charts support only bar, line, and pie types, and if matplotlib is missing these blocks degrade to plain text.