PDFkit Plugin Demo

This PDF generation solution is based on PDFkit.org (MIT License) - it is JavaScript PDF generation library for Node and the browser.

It gives the most complete experience for rendering PDFs containing Basic Primitives organizational: primitives.pdf.orgdiagram.Plugin and family primitives.pdf.famdiagram.Plugin diagrams and mix them with regular vector graphics and text, see PDFkit site for reference. The Plugin allows to evaluate size of a diagram with getSize method without rendering and then render it in appropriate position and scale with draw method.

Plugin respects current PDFkit document layout transformation settings, so developer can rotate, translate and scale diagrams on PDFkit document page.

Plugin is part of the Basic Primitives distribution assembly, but it does not depend on jQuery, so it is possible to run it in NodeJS or in browser for rendering without jQuery.

This demo relies on FileSaver.js package (MIT License) for in browser file download.

Download PDF

Run Code

 

Basic Primitives

Basic Primitives is a 100% JavaScript component library for building general purpose diagrams without manual nodes layout.

  • Increase font size
  • Default font size
  • Decrease font size