Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

make-pdf

Skill by garrytan

Turns any markdown file into a publication-quality PDF with one command. Suited to memos, letters, essays and drafts that need a clean layout, optional cover page and clickable table of contents.

  • Score 91
  • 143k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install make-pdf

Built from the published package, never by AI.

git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.claude/skills && cp -r /tmp/gstack/make-pdf ~/.claude/skills/make-pdf

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install make-pdf in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

make-pdf is a skill from the gstack project that turns markdown files into finished PDFs. The default swiss style uses black heading bars, red titles, small red sub-headings in a left field, and a text column of about 70 characters a line. A plain style gives a quieter look with 1in margins and 12pt body text. Both are left-aligned and use Helvetica.

The skill runs a single command to render a file. Options add a cover page, a clickable table of contents, chapter breaks at each top-level H1, and a diagonal DRAFT watermark. Mermaid and excalidraw fences render as vector diagrams offline. PDFs print through the Aside app when it is running and through gstack's own headless browser otherwise. It can also export a single-file HTML or a Word document. It is for people who write memos, letters and essays in markdown and need a clean PDF.

Written from the project's SKILL.md and checked against it.

What it can do

  • Markdown to PDFRenders a markdown file to a PDF with one command, with an optional output path.
  • Swiss and plain stylesOffers a bold swiss layout by default and a quiet plain layout via the style flag.
  • Cover and table of contentsAdds a cover page with title, author and date, and a clickable TOC with page numbers.
  • Chapter breaksStarts a new page at each top-level H1, which can be turned off.
  • DRAFT watermarkPlaces a diagonal 10% opacity watermark across every page.
  • Preview in browserRenders HTML with the same print styles so edits can be checked before making a PDF.
  • DiagramsRenders mermaid and excalidraw code fences as vector diagrams without network access.
  • Image handlingInlines local images, scales them to the content box, and blocks remote images unless allowed.
  • HTML and Word exportExports one self-contained HTML file or a Word DOCX file using the --to option.

What you need

  • gstack repository built with ./setup
  • Aside app on macOS 15 or later, or gstack's own headless browser
  • fonts-liberation on Linux for correct Helvetica rendering
  • A color emoji font for emoji on Linux

Try asking

  • Create a PDF from my memo.md with a cover and table of contents
  • Export essay.md as a publication PDF with chapter breaks
  • Make a DRAFT watermarked PDF from notes.md for review

Good to know

  • Remote images are blocked with a placeholder unless --allow-network is passed.
  • Exit code 4 means no browser is available; open Aside or run ./setup.
  • Emoji render as empty boxes on Linux systems without a color emoji font.
  • DOCX diagrams need a browser to rasterize; without one they embed as source text.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: make-pdf/SKILL.md, make-pdf/src/asideClient.ts, make-pdf/src/cli.ts, make-pdf/src/commands.ts, make-pdf/src/diagram-prepass.ts, make-pdf/src/docx-images.ts, make-pdf/src/html-to-docx.d.ts, make-pdf/src/html-to-vdom.d.ts, make-pdf/src/image-policy.ts. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: BashReadAskUserQuestionBash(~/.claude/skills/gstack/bin/gstack-skill-load:*)

  • SKILL.md15 KB
  • SKILL.md.tmpl11 KB
  • src/asideClient.ts4 KB
  • src/cli.ts12 KB
  • src/commands.ts2 KB
Show all 66 files
  • src/diagram-prepass.ts36 KB
  • src/docx-images.ts3 KB
  • src/html-to-docx.d.ts226 B
  • src/html-to-vdom.d.ts147 B
  • src/image-policy.ts11 KB
  • src/image-size.ts4 KB
  • src/orchestrator.ts14 KB
  • src/pdftotext.ts12 KB
  • src/print-css.ts20 KB
  • src/render.ts34 KB
  • src/setup.ts4 KB
  • src/smartypants.ts6 KB
  • src/style-swiss.ts10 KB
  • src/toc-pages.ts8 KB
  • src/types.ts3 KB
  • test/asideClient.test.ts8 KB
  • test/cli-args.test.ts4 KB
  • test/cli-exit-codes.test.ts16 KB
  • test/diagram-prepass.test.ts36 KB
  • test/docx-image-size.test.ts6 KB
  • test/e2e/ci-prereqs.test.ts2 KB
  • test/e2e/combined-gate.test.ts3 KB
  • test/e2e/diagram-gate.test.ts8 KB
  • test/e2e/emoji-gate.test.ts8 KB
  • test/e2e/format-gate.test.ts5 KB

And 36 more files on GitHub.

Alternatives to make-pdf

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

make-pdf: common questions

Does make-pdf need a browser?

PDF output prints through the Aside app when it is running, or through gstack's own headless browser otherwise. HTML and DOCX output need no browser, though DOCX diagrams need one to rasterize.

Which platforms does make-pdf support?

Aside requires macOS 15 or later. The source also mentions Linux and Windows as fallback environments that use gstack's headless browser.

Can it include images from the web?

Remote http and https images are blocked by default and shown as a placeholder. Passing --allow-network fetches them.

How do I install make-pdf?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is make-pdf free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is make-pdf safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.

What are alternatives to make-pdf?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

make-pdf Install

Add to stack

Loading.