Package Exports
- pdfjs
- pdfjs/font/Courier
- pdfjs/font/Courier-Bold
- pdfjs/font/Courier-BoldOblique
- pdfjs/font/Courier-Oblique
- pdfjs/font/Helvetica
- pdfjs/font/Helvetica-Bold
- pdfjs/font/Helvetica-BoldOblique
- pdfjs/font/Helvetica-Oblique
- pdfjs/font/Helvetica.json
- pdfjs/font/Times-Bold
- pdfjs/font/Times-BoldItalic
- pdfjs/font/Times-Italic
- pdfjs/font/Times-Roman
- pdfjs/font/ZapfDingbats
- pdfjs/lib/object
- pdfjs/lib/object/dictionary
- pdfjs/lib/parser/parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pdfjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A Portable Document Format (PDF) generation library targeting both the server- and client-side.
npm install rkusa/pdfjs@2.0.0-alpha.12.0.0 Breaking Changes
Version 2.0.0 is a re-write. I tried completely different approaches of the last years. Finally, this version has streaming layouting with smart content chunking, which allows for having a small memory footprint even when creating a PDF document with thousands of pages. I highly expect to settle with this implementation.
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)
If you are missing a feature, feel free to submit a PR or to ask for it.
History
- v2.x - streaming layouting with smart content chunking
- v1.x - calculate whole document layout upfront
- v0.x - in-memory layouting with rollbacks