Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the source #31

Closed
ghost opened this issue Jan 29, 2018 · 4 comments
Closed

Get the source #31

ghost opened this issue Jan 29, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 29, 2018

I want to print the HTML as a PDF.
I am using the HTML print plugin for flutter.

There is no method to ask for the HTML from the webview it seems ?

@lejard-h
Copy link
Collaborator

did you try evalJavascript with "document.documentElement.innerHTML" ? you could also try to call print() in the webView, but never, I don't know what could happen.

@ghost
Copy link
Author

ghost commented Jan 31, 2018

thanks. Ok going to try this out. Who knows.

For desktop webviews BTW print does not work... Annoying.. SO i have to feed the html to a htmlToPdf converter out of prcoess.

Anyway will try and let you know..

@ghost
Copy link
Author

ghost commented Jan 31, 2018

your suggestion works. thanks @lejard-h

@lejard-h
Copy link
Collaborator

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant