void-make-pdf

Convert markdown files into paginated PDFs with page-number footers using marked and puppeteer-core.

Updated May 29, 2026
One-click install
npx skills add https://github.com/voidcorp-core/void-harness --skill void-make-pdf-voidcorp-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: void-make-pdf
Source: https://github.com/voidcorp-core/void-harness/tree/main/packages/core/skills/void-make-pdf
Command: npx skills add https://github.com/voidcorp-core/void-harness --skill void-make-pdf-voidcorp-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires marked, puppeteer-core.

What problem does it solve? Turning markdown documents into polished, paginated PDF deliverables usually requires manual tooling that breaks tables across pages, mangles accented characters, or silently fails when no browser is available. This Skill renders markdown to print-quality PDFs with page-number footers, preserving diacritics, tables, and code blocks. ## Core Features & Use Cases - Markdown-to-PDF pipeline: marked parses the markdown, a sanitizer strips dangerous embedded HTML, and puppeteer-core prints through the system Chrome via page.pdf(). - Print-safe layout: a metric-compatible sans font stack renders French accents on any OS, and break-inside rules keep tables, figures, and code blocks from splitting across pages. - Configurable output: choose US Letter, A4, or Legal formats, custom margins, and document titles; page numbers appear automatically in the footer. - Use Case: Produce a signed French-language audit deliverable (DECLIK Audit Pulse) from a markdown report, with intact accents, euro-symbol tables, and numbered pages. ## Quick Start Ask the agent to render your markdown report into a PDF, for example: convert audit-report.md into an A4 PDF titled "Audit Pulse Q3" with page numbers.

Frequently Asked Questions about void-make-pdf

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

FAQPage Schema
How do I convert a markdown file to PDF with page numbers?

Run the make-pdf CLI with the input markdown path and an optional output path. It parses the markdown with marked, renders it in the system Chrome via puppeteer-core, and page.pdf() adds a footer showing the current page number and total pages.

What tools convert markdown to PDF without downloading Chromium?

puppeteer-core drives the Chrome or Chromium already installed on the machine, so no bundled browser is downloaded. Combined with marked for parsing, it produces PDFs with precise margins, print backgrounds, and page-number footers.

Does markdown to PDF conversion support A4 and custom margins?

Yes. Pass --a4 or --legal to switch from the default US Letter format, and --margins to override the default 1-inch margins. The document title defaults to the first H1 heading and can be overridden with --title.

Why does markdown to PDF fail when Chrome is not installed?

The pipeline requires a system Chrome or Chromium because puppeteer-core does not bundle a browser. If none is found, the CLI exits non-zero with an explicit error message; set the CHROME_PATH environment variable to point to a browser binary.

Is raw HTML in markdown safe when converting to PDF?

A conservative sanitizer runs unconditionally before rendering, stripping script and iframe tags, inline event handlers, and javascript: URLs from embedded HTML. The output is printed to PDF rather than live-rendered, so residual markup stays inert.