make-pdf

Convert markdown files into publication-quality PDFs with covers, TOCs, and watermarks.

Updated May 15, 2026
One-click install
npx skills add https://github.com/tgmarinho/canetaco --skill make-pdf-tgmarinho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: make-pdf
Source: https://github.com/tgmarinho/canetaco/tree/main/.claude/skills/make-pdf
Command: npx skills add https://github.com/tgmarinho/canetaco --skill make-pdf-tgmarinho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning markdown into a polished PDF usually means fighting with print CSS, page breaks, and typography by hand. This Skill renders markdown files into finished PDF documents with proper margins, page numbers, running headers, curly quotes, and clean copy-paste output, so the result looks like a finished document rather than a draft artifact. ## Core Features & Use Cases - Markdown to PDF rendering: Generate a PDF from any .md file with one command, including running headers, page numbers, and a CONFIDENTIAL footer by default. - Publication layout: Add a cover page, clickable table of contents, chapter breaks at each H1, and PDF bookmarks for long-form essays and reports. - Draft watermarking and preview: Stamp a diagonal DRAFT watermark across every page, or render HTML in a browser for fast iteration before producing the final PDF. - Use Case: You finish writing a memo in markdown and need to send it as a formal document. Run the generate command with the --cover and --toc flags to produce a branded, paginated PDF ready to share. ## Quick Start Ask the assistant to turn your markdown file into a PDF, for example: make a PDF from essay.md with a cover page and table of contents.

Frequently Asked Questions about 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?

Run the generate command with your markdown file as input, for example: $P generate letter.md letter.pdf. The tool renders the markdown with print CSS, adds page numbers and headers, and writes the finished PDF to the output path.

How do I add a cover page and table of contents to a PDF?

Pass the --cover and --toc flags when generating, along with --title and --author for metadata. Each top-level H1 in the markdown starts a new page, and the TOC includes clickable links with page numbers.

Can I add a DRAFT watermark to a PDF?

Yes, use the --watermark flag with any text, such as --watermark DRAFT. It renders a diagonal watermark at 10% opacity across every page, and you remove it by regenerating without the flag.

Why does my generated PDF look blank or empty?

A blank PDF usually means the browse daemon is not running, so check its status first. Paged.js timeouts typically happen when the markdown has no headings; dropping the --toc flag resolves that case.

Does the PDF generator fetch external images from markdown?

No, external image fetching is blocked by default to prevent tracking pixels. Add the --allow-network flag if you trust the markdown source and need remote images included in the output.