Have you tried seeing of Google charts will render in the pdf? I gave up on cfcharts and moved to Google charts. On Feb 20, 2013 5:14 PM, <[email protected]> wrote:
> My pdf outputs are missing the charts generated in the page. The page > content and charts (bar and pie) display just fine on their own (encased in > cfoutput tags), but the charts are missing from the pdf. > > I have the following setup in my code: > > <cfsavecontent variable="pdf_preload"> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > <html> > > <cfoutput> > > [bunch of variables and calls to database here...] > [bunch of charts generated using cfchart] > > > </cfoutput> > > </html> > > </cfsavecontent> > > <cfdocument format="PDF" filename="myChart.pdf" overwrite="Yes" > orientation="landscape"> > > <cfoutput>#pdf_preload#</cfoutput> > > </cfdocument> > > <cfheader name="Content-Disposition" > value="attachment;filename=myChart.pdf"><cfcontent > type="application/octet-stream" file="#myChart.pdf" deletefile="Yes"> > > > I am running OpenBD 2.0.2 on Jetty + PostgreSQL on Windows 7 x64 (same > behavior with the ColdFusion module embedded inside my GWT frame, or > standalone). > > The cfoutput tags inside the html are necessary to render the content of > the tags (variables). > > Any help would be greatly appreciated. (If my issue is related to the > cfchart rendering images, which cannot then be referenced from the > client-side, how do I provide the url to the temp directory where the > rendered images reside in my CFML code? See > http://www.justskins.com/forums/why-cfdocument-format-pdf-55668.html) > > As a side note, the page layout is inconsistent between IE v. > mozilla-based browsers (Chrome and Firefox). GWT does its own thing, where > the OpenBD page embedded as a GWT frame is rendered somewhere between IE > and mozilla when displayed in IE, but identical to the stand-alone > rendering on Firefox and Chrome. (If this last sentence makes no sense, > don't worry about it. I'm more concerned about fixing the missing charts > issues that getting cross-platform consistency at this point.) > > -- > -- > online documentation: http://openbd.org/manual/ > http://groups.google.com/group/openbd?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Open BlueDragon" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
