pdf-export

Convert Markdown, HTML, chat JSON, and Dojo files to typeset PDFs with syntax highlighting and themes.

2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/DojoGenesis/gateway --skill pdf-export-dojogenesis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-export
Source: https://github.com/DojoGenesis/gateway/tree/main/plugins/pretext-pdf/skills/pdf-export
Command: npx skills add https://github.com/DojoGenesis/gateway --skill pdf-export-dojogenesis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert diverse source files into polished, archive-ready PDF artifacts so content can be preserved, reviewed, and shared without layout or fidelity loss.

Core Features & Use Cases

  • Format-agnostic export: Renders code, Markdown, HTML, chat JSON, and structured Dojo documents to PDF with appropriate renderers.
  • Typography-first output: Uses a Canvas-based Pretext engine for precise typesetting, glyph placement, and consistent page layout.
  • Publishing and archival: Produce single or bundled PDFs with syntax highlighting, dark/light themes, table of contents, and pagination suitable for documentation, code review bundles, and client deliverables.
  • Validation and safety: Detects unreadable or binary inputs, warns on extremely large files, and creates missing output directories to avoid silent failures.

Quick Start

Export README.md to a typeset PDF at exports/README.pdf using the default typography and theme.

Frequently Asked Questions about pdf-export

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

FAQPage Schema
How do I convert Markdown to a typeset PDF for documentation?

Convert Markdown to a typeset PDF by applying a Canvas-based Pretext engine for precise glyph placement and consistent page layout. This Skill supports syntax highlighting, theme selection, and pagination control suitable for publishing and archival workflows.

Can I bundle multiple code files into a single PDF for code review?

You can bundle multiple code files into a single PDF for code review. The Skill writes single or bundled PDF artifacts with syntax highlighting and validated output paths, ensuring readable distribution without layout loss across files.

Does this PDF export tool work with HTML and chat JSON inputs?

This PDF export tool works with HTML and chat JSON inputs. It renders code, Markdown, HTML, chat JSON, and structured Dojo files using format-appropriate renderers to produce high-quality archival artifacts.

What is the best way to archive structured Dojo files as PDF deliverables?

Archive structured Dojo files as PDF deliverables using this Skill's typography-first output. It generates archive-ready PDFs with table of contents and dark/light themes to preserve content fidelity for client distribution.

What happens when exporting extremely large files or binary inputs to PDF?

When exporting extremely large files or binary inputs to PDF, the Skill detects unreadable inputs and warns on large files to prevent silent failures. It also creates missing output directories automatically for validated path handling.

Do I need any external dependencies to generate PDFs from source files?

You do not need external dependencies to generate PDFs from source files. The Skill operates independently using its built-in Canvas-based Pretext engine to handle typesetting, pagination, and theme selection.