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

Creating PDF from local HTML with dynamic content elements #111

Open
wenzerl opened this issue Dec 11, 2019 · 1 comment
Open

Creating PDF from local HTML with dynamic content elements #111

wenzerl opened this issue Dec 11, 2019 · 1 comment

Comments

@wenzerl
Copy link

wenzerl commented Dec 11, 2019

I am using
var param ="file:///android_asset/www/print.html"; printInternalFile(param);
to generate a PDF from inside a Cordova app. Basically this is working fine, but the dynamic content doesn´t show. This content is generated locally, e.g. from local storage a saved user name is integrated in this print page and a graph is generated depending on user input via chartjs.
Can this be done somehow?
Thanks, Werner

@JustWoody
Copy link

If this is dynamic then you could use fromData method rather than from file? and pass in the html string you have in memory instead? this works for me with dynamic content

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

2 participants