pdf

Convert markdown, HTML, and BPMN documents to PDF using available local converters.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/MohamedSayedK/omnigrid --skill pdf-mohamedsayedk
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/MohamedSayedK/omnigrid/tree/main/assets/core/skills/pdf
Command: npx skills add https://github.com/MohamedSayedK/omnigrid --skill pdf-mohamedsayedk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Sharing framework-generated documents like PRDs, audit reports, and diagrams with stakeholders, customers, or auditors often requires PDF format, but manually converting files and choosing destinations is repetitive and error-prone. ## Core Features & Use Cases - Multi-format conversion: Converts Markdown, HTML, and BPMN files to PDF by detecting the format from the file extension. - Converter fallback chain: Tries pandoc, md-to-pdf, wkhtmltopdf, or bpmn-to-image in order, and degrades gracefully with install instructions when no converter is available. - Interactive destination handling: Prompts for the output location, supports explicit paths, and never silently overwrites an existing PDF. - Use Case: After generating a security audit report in Markdown, run the skill to produce a shareable PDF next to the source file for sending to an external auditor. ## Quick Start Ask the assistant to convert docs/vision.md to a PDF and keep it next to the source file.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I convert a markdown file to PDF from the command line?▼

Run the skill with the input file path, such as /pdf docs/vision.md. It tries pandoc first, then md-to-pdf via npx, and writes the PDF next to the source unless you choose another destination.

What tools can convert HTML to PDF?▼

The skill supports pandoc and wkhtmltopdf for HTML inputs, trying pandoc first and falling back to wkhtmltopdf. If neither is installed, it prints install instructions for brew or apt-get.

Can I convert BPMN diagrams to PDF?▼

Yes, BPMN files with .bpmn or .bpmn20.xml extensions are supported through a two-step pipeline: bpmn-to-image produces an SVG, then pandoc converts the SVG to PDF.

What happens if no PDF converter is installed?▼

The skill degrades gracefully and prints an advisory listing which converters work for your input format along with install commands. It only surfaces a raw error when a converter exists but fails.

Can I batch convert multiple documents to PDF at once?▼

No, the skill handles one input file per run by design. To convert many documents, loop over the files in a shell script and invoke the skill for each one.