Skip to content

A simple, fast, TypeScript PDF generation library

License

Notifications You must be signed in to change notification settings

gradecam/fpdfjs

Repository files navigation

fpdfjs

A TypeScript library for generating PDFs

  • The initial version of this library is a port from FPDF.
  • It may or may not be ready for production use, depending on your needs

Motivation

We were using PDFKit for a project that was doing very high volume PDF creation. Unfortunately PDFKit's (otherwise excellent) font handling code was just too slow to keep up. In order to speed things up we ported over the less robust but much faster implementation from FPDF and tFPDF. The result is something that is much faster if it does what you want, but may not do what you want.

Instructions

npm install --save fpdfjs

Usage

See bin/examples

What's Done

  • Basic handling of text, standard fonts, and custom fonts
  • Some vector operations

What's not Done

  • Lots and lots of stuff

Development

Building

./bin/build-standard-fonts.sh (one time)
npm run build (to do a full build)
npm run watch (to watch and build continuously)

About

A simple, fast, TypeScript PDF generation library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published