OPF
Browse docs
On this page

OPF vs reveal.js

Use reveal.js when you are writing an HTML or Markdown talk to present in a web browser. Use OPF when software or an agent should author a structured deck that you validate and export to editable PowerPoint or PDF.

When to use which

Use OPF when

  • An agent or program should write a schema-valid JSON deck before export.
  • You want to review JSON, Markdown or YAML source in git and produce PPTX and PDF locally.

Use reveal.js when

  • You want an HTML talk with browser interactions and web styling.
  • You prefer the reveal.js Markdown plugin and browser-based PDF printing.

Features and trade-offs

Other-tool claims link to the official sources listed below. Check export results on your own decks; this is a workflow comparison, not a fidelity benchmark.

FeatureOPFreveal.js
Authoring sourceJSON; Markdown and YAML convert to the same deckHTML, with a Markdown plugin [1][2]
Presentation workflowValidate a source file, then convert it locallyPresent interactive HTML in a web browser [1]
PDFCLI converts the deck to PDFPDF export uses a print stylesheet [3]
PowerPoint handoffCLI exports native text, tables and charts; inspect conversion findingsThe cited docs describe HTML presentation and PDF printing; choose that workflow for a web talk [1][3]

A local OPF workflow

Save your deck as deck.opf.json. In a project with the CLI and export packages installed (first local run), validate it before writing the PowerPoint and PDF files:

Validate, then export
npx opf validate deck.opf.json --fail-on warning
npx opf convert deck.opf.json deck.pptx
npx opf convert deck.opf.json deck.pdf

Keep the OPF source in git. Inspect the findings and rendered output before handing over the files. The CLI guide and conversion guide document these commands and import limits.

FAQ

When should I choose reveal.js?

Choose reveal.js for a talk you want to author in HTML or Markdown and present in a browser.

Can reveal.js export PDF?

Yes. Its official guide documents PDF export with a special print stylesheet.

How do I get an editable PPTX with OPF?

Keep the OPF JSON as source, validate it, then run npx opf convert deck.opf.json deck.pptx. Inspect export findings and the resulting file.

Sources

Official documentation checked November 22, 2026. Product behavior can change.

  1. reveal.js overview
  2. reveal.js Markdown plugin
  3. reveal.js PDF export

OPF: CLI and Node conversion reference; conversion commands and limits.