Skip to content
json-render-office
Esc
↑↓navigate↵open⌘Jpreview
On this page

Limitations

What is verified, what is not, and what is missing.

What “verified” means here

The only application these packages have been checked against is LibreOffice. The gallery script renders a spec for every standard component, converts the file to PDF with LibreOffice 26.8.3.1 and looks at the result. Those screenshots are on the component pages.

Package Components Rendered and opened in LibreOffice 26.8.3.1
json-render-pptx 11 Deck, Slide, Columns, Column, Title, Subtitle, Text, BulletList, Table, Chart, Image
json-render-docx 12 Document, Section, Header, Footer, Title, Heading, Paragraph, List, Table, Image, PageBreak, TableOfContents
json-render-report 7 Report, Chapter, Paragraph, BulletList, Table, Chart, Image

Everything else is unverified. That includes Microsoft Word, Microsoft PowerPoint, Keynote, Google Docs and Google Slides, and any other viewer. The files follow the Office Open XML format and the writers have their own tests, but nobody has opened them in those applications and compared the result. Treat an exact match as unconfirmed, and check a file in your target application before you depend on it.

For the compatibility table per feature, see the README in the repository.

Missing or partial

  • No charts in Word. json-render-docx has no Chart component. In a report, a chart becomes a table of its numbers in the document.
  • No PDF output. See One spec, three outputs.
  • Fonts are names only. Nothing is embedded. The default is Calibri, and LibreOffice draws it with a substitute where it is not installed.
  • Fixed layouts. Slides use title, title-content, section or blank, with Columns for two or three columns. You cannot place an element at a position.
  • Fields in Word. The TableOfContents and the “Page X of Y” in a Footer are Word fields. Word fills in page numbers when it opens the file. LibreOffice drew the contents entries with dotted leaders and no page numbers in the check above.
  • Limits live in validateProps. The renderer does not enforce lengths and counts. A spec over a limit still renders, and how it fits on the page is not checked.
  • Image sources are restricted to https: and data: images. See Images and security.

Not affiliated

Community project. Not affiliated with or endorsed by Vercel. “json-render” is the name of the Vercel Labs project these packages render for.

Was this page helpful?