minimax-pdf

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

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/qfwc258/trae-skills --skill minimax-pdf-qfwc258
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimax-pdf
Source: https://github.com/qfwc258/trae-skills/tree/main/minimax-pdf
Command: npx skills add https://github.com/qfwc258/trae-skills --skill minimax-pdf-qfwc258

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Creating visually polished PDFs usually requires manual layout work in design tools, and filling or restyling existing PDFs is tedious. This Skill automates PDF creation, form filling, and document reformatting through a unified CLI 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, etc.), each with its own palette, cover pattern, and font pairing. Supports headings, tables, images, 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: Convert existing Markdown, text, PDF, or JSON documents into a styled PDF using the full design pipeline. - Use Case: A consultant needs a client-ready proposal. They write the content as JSON blocks, run the CREATE route with the 'proposal' type, and receive a print-ready PDF with a designed cover page and consistently styled body pages. ## Quick Start Ask the AI to generate a professional PDF report titled 'Q3 Strategy Review' from your content using the minimax-pdf skill's CREATE route.

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 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/false, and dropdowns must match an existing choice value.

What document types and cover designs are supported?

Fifteen types are available: report, proposal, resume, portfolio, academic, general, minimal, stripe, diagonal, frame, editorial, magazine, darkroom, terminal, and poster. Each maps to a distinct cover pattern, color palette, and Google Fonts pairing.

Can I convert a Markdown file to a designed PDF?

Yes, the REFORMAT route accepts .md, .txt, .pdf, and .json inputs. It parses the source into content blocks and runs the full CREATE pipeline to produce a styled PDF with a cover page.

What dependencies are required to render PDF covers?

Cover rendering requires Node.js 18+ with Playwright and Chromium installed, since covers are HTML rendered to PDF. Body pages need Python with reportlab and pypdf; matplotlib is optional for charts, math, and flowcharts. Run make.sh check to verify everything.

Why do math formulas render as plain code text?

Math blocks use matplotlib mathtext for rendering LaTeX syntax. If matplotlib is not installed, the block degrades to code-style text as a fallback. Run make.sh fix to install matplotlib and restore formula rendering.