Create PDF's in Angular / Typescript

Posting an example of how to create PDFs directly in the browser with no server involved using Angular, Typescript and

The demo is here:

The PDF creation is initiated in the createPDF() method of this source:

The pdfmake library is made available to Angular and Typescript by creating a script element inside an rxjs/Observable that is notified on the script element onload. You can see how it's done in here:


Popular posts from this blog

My VNC based development environment with Visual Studio Code running on Ubuntu

Angular 5 - Ahead of Time build configuration for rollup