Google charts and Itext

429 views
Skip to first unread message

Choy

unread,
Feb 4, 2013, 6:05:38 PM2/4/13
to google-visua...@googlegroups.com
Hi,
I am using Itext in Java to generate a PDF version of my JSP page that has Google charts. 

I am wondering how to create google charts through Itext. Will this work, and could you provide me any samples on how to execute Javascript from Itext.
Thank you!

asgallant

unread,
Feb 4, 2013, 6:34:10 PM2/4/13
to google-visua...@googlegroups.com
Does Itext do all of its work server-side?  If so then you are likely out of luck, as the charts are all rendered client-side, so there isn't anything for Itext to convert to PDF when it does its thing.

Raji Nair

unread,
Feb 4, 2013, 6:41:03 PM2/4/13
to google-visua...@googlegroups.com
yes. So does that mean google charts cannot render on a PDF? 


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

asgallant

unread,
Feb 4, 2013, 7:58:41 PM2/4/13
to google-visua...@googlegroups.com
If you convert the chart to a PNG image file (using a hack like this one), you can import it into a PDF, but generally speaking, there is no way to directly import a Visualization API chart into a PDF.  It is possible that the Itext software uses some trick that I don't know about to work its magic, so it's worth giving it a shot, but my expectation is that it won't work.


On Monday, February 4, 2013 6:41:03 PM UTC-5, Choy wrote:
yes. So does that mean google charts cannot render on a PDF? 
On Mon, Feb 4, 2013 at 3:34 PM, asgallant <drew_g...@abtassoc.com> wrote:
Does Itext do all of its work server-side?  If so then you are likely out of luck, as the charts are all rendered client-side, so there isn't anything for Itext to convert to PDF when it does its thing.


On Monday, February 4, 2013 6:05:38 PM UTC-5, Choy wrote:
Hi,
I am using Itext in Java to generate a PDF version of my JSP page that has Google charts. 

I am wondering how to create google charts through Itext. Will this work, and could you provide me any samples on how to execute Javascript from Itext.
Thank you!

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.

Raji Nair

unread,
Feb 5, 2013, 1:41:58 PM2/5/13
to google-visua...@googlegroups.com
Thank you, I ended up JFREE chart to generate the chart in PDF.. thanks for your help! 

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages