Skip to content

v0.1.1 — Major rewrite with font management, server utilities, and Nuxt DevTools

Latest

Choose a tag to compare

@BayBreezy BayBreezy released this 28 Apr 22:41
· 10 commits to main since this release

What's new

Font management

  • Custom fonts — load local TTF files at build time, embedded as base64
  • Google Fonts — specify font family names; downloaded and cached in .nuxt/pdfmake-fonts-cache/ at build time
  • CDN fonts — pass HTTP font URLs fetched at PDF-creation time
  • Bundle size warnings when embedded fonts exceed a threshold
  • useDefaultRoboto falls back to the bundled Roboto when no fonts are configured

Server-side PDF generation

  • createPDFBuffer and createPDFBase64 server utilities auto-imported via usePDFMake
  • Built-in /_pdfmake/generate POST endpoint (dev only by default, opt-in for production)

Nuxt DevTools integration

  • Dedicated PDFMake panel showing embedded fonts, CDN fonts, Google Fonts, and per-font bundle sizes

Module options

  • enabled — disable the module entirely
  • enableComposable — toggle usePDFMake auto-import and server utils
  • enableDevtools — toggle the DevTools panel
  • enableApiRoute — control the /_pdfmake/generate endpoint

Repo

  • Migrated to a monorepo layout (module/, playground/, docs/)
  • Replaced npm/prettier/eslint with bun, oxfmt, and oxlint
  • Added CI workflow, issue templates, contributing guide, and security policy

Breaking changes

  • Module config key changed to pdfmake (was nuxtPdfmake)
  • includeFontPresets option removed — replaced by the new fonts config block
  • Minimum Nuxt version: >=3.0.x

Generated Stuff

compare changes

🚀 Enhancements

  • Prepare for major release (b3abfd7)

📖 Documentation

❤️ Contributors