Export Markdown files to polished, print-ready PDFs and set up reusable local export scripts. Use this skill whenever the user wants Markdown converted to PDF, asks for one-click export automation, needs reusable styling presets, or wants to tune margins, fonts, images, or page layout for resumes, reports, manuals, proposals, or summaries. Default to a script-based workflow instead of a one-off manual conversion.
Use this skill to turn markdown deliverables into repeatable PDF outputs. The default recommendation is not a one-time command; it is a reusable local export setup that the user can run again after editing the markdown.
Choose the preset automatically unless the user clearly wants something else:
resume - recommended for resumes, CVs, bios, profile sheets, and portfolio summariescompact - recommended for one-page handouts, summaries, cheat sheets, and condensed versionsdefault - recommended for general reports, instructions, proposals, and notesRead references/preset-selection.md if you need to justify or refine the preset choice.
scripts/export_markdown_pdf.ps1scripts/export_markdown_pdf.cmdassets/assets/export-config.example.json adapted into a project-local config fileIf the user only wants a one-time export, you may run the script directly without copying it, but the default recommendation is still to leave a reusable setup behind.
The bundled script expects a JSON config file with this shape:
{
"defaults": {
"workDir": ".",
"resourcePath": ".",
"preset": "default",
"virtualTimeBudget": 5000
},
"documents": [
{
"input": "document.md",
"output": "document.pdf",
"title": "Document Title",
"preset": "default"
}
]
}
Use:
preset for the built-in CSS optionscss only when the user explicitly wants a custom stylesheetresourcePath when images or local assets are referenced outside the markdown's own directoryAfter export:
scripts/export_markdown_pdf.ps1 - generic reusable export scriptscripts/export_markdown_pdf.cmd - Windows wrapper for the PowerShell scriptassets/default.css - balanced general-purpose print styleassets/compact.css - tighter layout for short documentsassets/resume.css - polished resume-oriented styleassets/export-config.example.json - starter config filereferences/preset-selection.md - when to use each preset and what to tweak