how to convert the thymeleaf html to pdf containing google chart? - spring-mvc

I want to create a PDF version of the Thymeleaf HTML page, which includes a Google Chart to create charts in the script area. I can view the chart in the browser because the browser loaded the javascript, but when I converted it to a pdf, I only got the title; the chart was not included.
Can somebody assist me?
I've tried using Itext to convert to PDF and the system's template engine to transform HTML incorporating Google Charts into PDFs.

Related

How can I integrate itable interactive tables and ipywidget in the same html report generated by voila

In jupyter-notebook, I have a report with interactive tables generated by itables (PyPI module) and graphs generated by ipywidgets that I would like to edit in html with voila.
Separately it works, how can I put the two parts together in one html page ?
Thanks,
Marc S.
I have found the solution, my html page is now fully interactive.

custom ppt templated changes doesn't render rmarkdown

I am attempting to render a powerpoint presentation from rmarkdown.
I downloaded this powerpoint template and associated files from sol-eng and am able to generate the powerpoint as is.
However, if I open the template and do
view -> slide master
and adjust any of the slide master (i.e. change the background color)
close slide master -> save
I get the error "The file may be damaged or it may have been created in a pre-release version of PowerPoint." when I attempt to render the powerpoint.
I am unclear why using the template as is vs changing the background would generate an error in making the powerpoint presentation.
Any suggestions would be helpful:)
it might be that R writes binary differently than Powerpoint. Is it possible to create a ioslide or beamer slide file with the original powerpoint file instead? If you do IOSlides or beamer, the view with only need a web browser and could be a more flexible file for presentation
I used a different computer/version of powerpoint; adjusted the master slide and now it works - still unsure why I couldn't adjust with my version of powerpoint so I am guessing some versioning issue.

Unable to display googleVisMotion chart in Wordpress,Rpubs & Rmd file

I am unable to display googleVisMotion Chart in Wordpress,RPubs or as RMarkdown. The googleVisMotion Chart works locally on my computer but I am unable to get it to display anywhere else. I tried the method in post
Embedding googleVis charts into a web site
But that did not work for Wordpress when I paste the file in HTML page. When I tried to publish in RPubs using Rmd I just get
"## starting httpd help server ..."
and no chart.
Please let me know how I can display the googleVisMotion chart? Are there other methods?
I saved the chart as a html as suggested in Embedding googleVis charts into a web site. I then hosted the Html page as a Github page (gh-pages) and this worked.

Is it possible to convert an html page to a pdf with asp.net?

I want to generate pdf of my webpage. Is it possible? if not then what can be done to get a pdf form which has the data from the database.
Depending on what you need this for, you can create a PDF via the Print menu in Chrome (Save to PDF is a "printer").

A "shortcut" method for exporting an ASP.Net Page to pdf/xls

I want to export a few Pages to pdf/xls. By Pages I mean as the eye sees it - a screenshot of the Page's contents. I know how to build pdf/xls documents using 3rd party tools but is there any way to quickly export the rendered contents of say a Panel?
edit: maybe a tool that can render the page's output as a browser would, and save it as an image file?
There is an open source console program named wkhtmltopdf which you could call from asp.net to convert the page. It can convert to PDF or an image with wkhtmltoimage (JPG, PNG, etc.) using the webkit rendering engine.
Check my answer to this question to see an example of how to convert from a html to a pdf using C#:
Easiest way of porting html table data to readable document
I can recommend http://www.screengrab.org/ for firefox.

Resources