Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
/ pdfjs Public archive
forked from rkusa/pdfjs

A Portable Document Format (PDF) generation library targeting both the server- and client-side.

License

Notifications You must be signed in to change notification settings

honestica/pdfjs

 
 

Repository files navigation

pdfjs

A Portable Document Format (PDF) generation library targeting both the server- and client-side.

NPM Dependency Status Build Status

Documentation | Playground

npm install [email protected]

2.0.0 Breaking Changes

Version 2.0.0 is a re-write. The implementation is expected to settle with the current approach of streaming layouting with smart content chunking, which allows for having a small memory footprint even when creating a PDF document with thousands of pages.

2.0.0 requires Node >= 7. If you get an error on require('pdfjs') you are probably using an older Node.js version, which can be fixed by updating Node.js or by running pdfjs through a transpiler like babel.


Features

  • Text (with common formatting options)
  • Images (JPEGs, other PDFs)
  • Tables (fixed layout, header row)
  • Header & Footer
  • AFM fonts && OTF font embedding (as CID fonts, i.e., support for fonts with large character sets)
  • Add existing PDFs (merge them or add them as page templates)
  • Document outline

A lot of examples can be found in the test folder.

If you are missing a feature, feel free to submit a PR or to ask for it.

History

See CHANGELOG.

MIT License

MIT

About

A Portable Document Format (PDF) generation library targeting both the server- and client-side.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.0%
  • TypeScript 17.0%
  • HTML 1.7%
  • CSS 0.3%