Print to pdf the current page!


#1

I am developing an IONIC app for iOS and I want to print the current page into pdf file or JPG, I don’t mind…

I try several plugins like cordova-pdf-generator or cordova-plugin-printer … None of this solutions worked for me because… because

When I use

document.getElementsByTagName(‘html’)[0].innerHTML

This plugins avoid ionic tags, like ion-grid and also css styles files…

Is it posible to do that?? I am thinking it’s imposible…


#2

Check out https://ionicframework.com/docs/native/screenshot/ !


#3

It doesn’t work… I already try…


#4

i face the same problem do you find another solution screenshot not solve my problem !