← ClaudeAtlas

mif-to-pdflisted

Convert a MIF JSON-LD document to a typeset PDF with real markdown rendering (headings, bold, inline code, flat bullet lists, tables, clickable links, embedded raster/SVG figures) plus every MIF frontmatter field (id/type/created, namespace/modified/temporal, provenance/citations/relationships) embedded as PDF metadata — the standard Info dictionary, real Dublin Core properties, a fully typed mif-namespaced RDF/XML tree per field, and a retained raw-JSON copy as the machine-checkable losslessness guarantee. Input is JSON-LD only; a Markdown source is converted first with the existing mif-convert/mif-validate tooling. Use when a MIF document needs a portable, richly-formatted, metadata-bearing PDF rendering.
modeled-information-format/mif-docs-plugin · ★ 0 · Data & Documents · score 71
Install: claude install-skill modeled-information-format/mif-docs-plugin
# mif-to-pdf Shared helper (not a standalone document genre). Converts a **MIF JSON-LD document** into a real, typeset PDF file — not a plain-text dump of the body — embedding every field the source carries as richly structured PDF metadata. ## One input surface: JSON-LD only This skill does not parse Markdown or YAML frontmatter itself. If the source is a Markdown MIF document, convert it to JSON-LD first with this suite's existing tooling — the same projection `mif-validate` already performs, not a second, duplicate parser living inside this skill: ```bash node scripts/mif-convert.mjs emit-jsonld <doc.md> > <doc.json> node scripts/mif-validate.mjs <doc.md> --level 1 # conformance gate, run before or after node scripts/mif-to-pdf.mjs <doc.json> --output <doc.pdf> ``` If asked to convert a `.md` file directly, run the `emit-jsonld` step first rather than attempting to read the Markdown's frontmatter directly — never hand-parse YAML frontmatter as a shortcut around the existing projection. ## Markdown rendering: this suite's own round-trip-safe subset The `content` body is real markdown text — this skill actually renders it. Most of the supported subset is exactly what `mif-validate`'s own markdown-to-JSON-LD projection (`scripts/lib/projection.mjs`) round-trips losslessly: h1–h3 headings (distinct sizes, bold), paragraphs, flat bullet lists, tables (bordered, header row bold), inline `code` (monospace), **bold**, `[text](url)` links and `<url>` autolinks (rendered as