https://github.com/edocbuhtig/ionic-pdf-pdfmake
Create PDF File Ionic 5 Capacitor & pdfMake In 10 Minutes. Ionic 5 PDF Download using pdfMake and Ionic Capacitor. Create and Download Ionic Capacitor PDF files using pdfMake library for Web, PWA and Mobile Devices
https://github.com/edocbuhtig/ionic-pdf-pdfmake
capacitorjs createpdf ioinc ionic-capacitor ionic-framework ionic5 pdf-generation pdf-viewer pdfmake
Last synced: 12 months ago
JSON representation
Create PDF File Ionic 5 Capacitor & pdfMake In 10 Minutes. Ionic 5 PDF Download using pdfMake and Ionic Capacitor. Create and Download Ionic Capacitor PDF files using pdfMake library for Web, PWA and Mobile Devices
- Host: GitHub
- URL: https://github.com/edocbuhtig/ionic-pdf-pdfmake
- Owner: edocbuhtig
- Created: 2020-11-27T10:05:23.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-20T12:54:45.000Z (about 5 years ago)
- Last Synced: 2025-03-27T04:33:32.679Z (about 1 year ago)
- Topics: capacitorjs, createpdf, ioinc, ionic-capacitor, ionic-framework, ionic5, pdf-generation, pdf-viewer, pdfmake
- Language: TypeScript
- Homepage:
- Size: 208 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Create PDF File Ionic 5 Capacitor & pdfMake In 10 Minutes. Ionic 5 PDF Download using pdfMake and Ionic Capacitor. Create and Download Ionic Capacitor PDF files using pdfMake library for Web, PWA and Mobile Devices.
### Watch Complete Video Tutorial on YouTube
[Create PDF File Ionic 5 Capacitor & pdfMake In 10 Minutes](https://youtu.be/PLeLzsMtI3g)
### Install pdfmake NPM Package
```
npm install pdfmake --save
```
Type Script:
```
import * as pdfMake from "pdfmake/build/pdfmake";
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
(pdfMake).vfs = pdfFonts.pdfMake.vfs;
```
You can even use below for older version of typescript
```
import pdfMake from "pdfmake/build/pdfmake";
import pdfFonts from "pdfmake/build/vfs_fonts";
pdfMake.vfs = pdfFonts.pdfMake.vfs;
```
### (Bug) Fix for Android Error v4 support library
```
npm install jetifier
npx jetty
npx cap sync android
```