Open mah01 opened 9 years ago
How are you getting the HTML and passing it to html-pdf?
I think you would need to render the HTML on the client (or maybe PhantomJS), then pass that rendered HTML back to the server, to be passed to html-pdf. I would recommend getting the rendered HTML by doing something like "document.documentElement.outerHTML". This ensures you get the HTML as you see it in your browser, after all AngularJS code has run.
@mah01 Did you get this working?
No, I have not tried
to get this working, we'll need #133
Hey,
I am trying to convert a simple AngularJS application to PDF. However, I do not see angular generated content inside the converted pdf. Am I missing something obvious?
I am attaching the html screen how it should look like. "Right after body" is the
<p>
tag inside theindex.html
right after<body>
and "right before body end" is the same, but just before</body>
. All other text is "generated" by angular in the template.Rendered html when I see it in the browser:
Generated PDF (for some reason I am not able to attach it here): https://dl.dropboxusercontent.com/u/3585277/generated_file.pdf
html: https://dl.dropboxusercontent.com/u/3585277/dist.zip