make-pdf

Convert Markdown content to PDF with custom layout and formatting.

127k|19.1k|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/garrytan/gstack --skill make-pdf-garrytan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: make-pdf
Source: https://github.com/garrytan/gstack/tree/main/make-pdf
Command: npx skills add https://github.com/garrytan/gstack --skill make-pdf-garrytan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, pagedjs, puppeteer, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the problem of converting Markdown files into publication-quality PDFs with features like proper margins, page breaks, and clickable TOC.

Core Features & Use Cases

  • Markdown to PDF Conversion: Convert Markdown files to PDFs with professional formatting and layout.
  • Customization: Add cover pages, table of contents, headers, footers, and watermarks.
  • Use Case: You have a Markdown document that you need to distribute in PDF format. Use this Skill to generate a professional-looking PDF that can be easily shared.

Quick Start

Use the make-pdf skill to generate a PDF from the attached Markdown file 'report.md'.

Frequently Asked Questions about make-pdf

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

FAQPage Schema
How do I convert Markdown to PDF with a table of contents and page breaks?

To convert Markdown to PDF with a table of contents and page breaks, you need a rendering tool like Paged.js or Puppeteer to handle document layout and generate a publication-quality file.

Do I need Bash and Puppeteer to generate publication-quality PDFs from Markdown?

Yes, you need Bash to execute the conversion script and a PDF rendering tool like Puppeteer or Paged.js to process the Markdown content and apply professional formatting.

What is the best way to add headers, footers, and margins when converting Markdown to PDF?

The best way to add headers, footers, and margins when converting Markdown to PDF is using a layout engine like Paged.js, which processes Markdown formatting to produce professional document structures.

Can I create a clickable table of contents for a Markdown-generated PDF?

Yes, you can create a clickable table of contents for a Markdown-generated PDF by using a custom script with Paged.js or Puppeteer to handle document layout and formatting features.

Does converting Markdown to PDF with Puppeteer support cover pages and watermarks?

Yes, converting Markdown to PDF with Puppeteer supports adding cover pages and watermarks, alongside handling custom layout elements like headers, footers, and margins for high-quality document generation.

Why does my Markdown to PDF conversion lack proper formatting and margins?

Your Markdown to PDF conversion lacks proper formatting and margins if you are not using a dedicated layout tool like Paged.js or Puppeteer to handle the document generation and page structure.