office

Installation
Summary

Generate Microsoft Office documents and PDFs with pure JavaScript, no native dependencies.

  • Create DOCX, XLSX, PDF, and PPTX files with TypeScript; all libraries run in Node.js, browsers, and Cloudflare Workers
  • DOCX supports paragraphs, tables, images, and text formatting; XLSX handles formulas, multiple sheets, and JSON-to-sheet conversion
  • PDF includes text, shapes, images, form filling, and page merging; PPTX covers slides, charts, tables, and master layouts
  • Common pitfalls: remember PDF coordinates start at bottom-left, always await Packer.toBuffer() for DOCX, use base64 images in Workers instead of remote URLs
SKILL.md

Office Document Generation

Status: Production Ready Last Updated: 2026-01-12 Dependencies: None (pure JavaScript libraries) Latest Versions: docx@9.5.0, xlsx@0.18.5, pdf-lib@1.17.1, pptxgenjs@4.0.1


Overview

Generate Microsoft Office documents and PDFs programmatically with TypeScript. All libraries are pure JavaScript with zero native dependencies, enabling universal runtime support:

Format Library Workers Browser Node.js
DOCX docx
XLSX xlsx (SheetJS)
PDF pdf-lib
PPTX pptxgenjs ⚠️*
Related skills
Installs
426
GitHub Stars
778
First Seen
Jan 20, 2026