Grails, HTML/UI/CSS

HTML to PDF using PhantomJs and Grails

Converting an html or web page into a pdf is never easy and you might face similar problem in your project as well. There is  a solution that works out of the box for this problem and all you need is installing PhantomJs on your system and calling it from your Grails or Java code. Just follow below steps one by one and you are...

by Arpit Jain
Tag: generate-pdf
14-Jul-2015

Grails, Javascript/Ajax/JQuery

Generate PDF for Google Charts through Javascript

In a previous blog, we learned, how to draw a google chart. Let's say, I have 5 graphs on my page and I want to generate a PDF which contains these graphs using a JavaScript. For that, we will use jsPDF plugin. Step 1. Create a hidden empty DIV, to store graph-images: [java] <div id='graph-images'...

by Mansi Arora
Tag: generate-pdf
03-Mar-2015