Hello,
in this tutorial I explain how you can print a Div/Page and so on in your Browser.
Features:
SVG Files Support
IMG Files Support
Background and Layers also Supported
So lets get started:
First of all you need this NPM Plugin: https://github.com/tsayen/dom-to-image
So do:
npm install dom-to-image
After that create a provider. We call it print-provider. So do:
ionic generate provider print
After that create a print function in your provider like this:
import { Injectable } fro…

I was unable to implement it on Ionic 4. Mostly because I couldn’t find the main.css file (on Ionic-3 it was placed in build directory.