How to show pie, bar chart in pdf using dompdf - bar-chart

Hi I am using dompdf
I have report page where i have used google pie chart and google bar chart. The charts work fine in the browser. I have to display that these chart in pdf file that is created with DOMPDF. I used the same code withing the code that generates the pdf but it did not work. Is it possible to create pdf file with the google bar and pie chart? If yes, how can i implement and if not then is there any other way to create the pdf with pie chart?
Hope to get answer soon. Thanks in advance

dompdf does not currently support client-generated content (i.e. something generated using JavaScript). The Google visualization library you're pointing to is dynamically generated in the client.
If you want to use a dynamically-generated chart in dompdf you'll have to use something that generates it on the server. Google does have something like this in it's image charts library, but it's been deprecated (i.e. currently, guaranteed availability is only until 2015). You can find similar libraries.
If you still want to use client-generated charts you can try a product like wkhtmltopdf. It's based on the webkit rendering engine and supports client-side scripting.

Related

Highcharts/Highstock supported in Google Sites?

Is it possible to embed Highcharts scripts in Google sites?
I've tried inserting an HTML box and also throwing everything in an HTML file and calling it via a Google Apps script. So far, both methods just give me all the text from the graph (title, axis labels, etc.), but no graph. I know embedding JS in a Google site is kind of tricky, but can this be done?
No. SVG (which Highcharts uses) is not supported within Caja (which an HTML Box and Apps Script use to sanitize and ensure safe code).
Yes, as of Jan 2016 (at least), I can easily use a highcharts library in GAS.
A dynamically updating graph using highcharts library within GAS environment can be found here: GAS-highcharts
A Working example is here: working-highcharts-GAS
It is based on this JSFiddle: jsfiddle (dot) net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/stock/demo/dynamic-update/

Html Display apex chart in ContentFlow

I am using ContentFlow library to display objects as cover flow view. When I am displaying images , it is working fine . But on using apex charts its view is getting disturbed. Is there any way to display apex charts in proper format using ContentFlow library?
Please provide some solid solution. I tried many things but they did not work

Convert html 5 to PDF in MVC 3

I have created an application in asp.net MVC 3, I used highchart.js for rendering chart(stacked column) in view and its output is coming as svg.
I need to convert this chart page into PDF file. I tried iTextSharp but its not showing the chart page content.
Is there anyway to convert html 5 to PDF?
ExpertPDF is a nuget package you can install. For it to work without putting text over your pdf, you'll have to purchase a license. It can handle svg.
http://www.html-to-pdf.net/ExpertPDF-HtmlToPdf-Converter.aspx
You can also use a webkit component such as HTM2PDF to render HTML to PDF - see an explanation here:
Highcharts to PDF with Webkit
If you just want to convert svg to image then you can use PhantomJS (headless webkit browser). With help of PhantomJS you can render svg and make screenshot. Then you can create a PDF and insert that image into it.
Also you can Aspose.Pdf for converting svg into PDF directly. See: http://www.aspose.com/.net/pdf-component.aspx (it's a paid component!)

Display Invoice via HTML rathen than PDF?

I'm using Prawn to generate invoices as PDFs on the fly, which open in Adobe Acrobat. Is there a quick way to have that same invoice display as HTML, or at least be viewable from within my web app while retaining the layout, rather than opening up a new window/PDF? I've been unable to find any good example or suggestions. Thanks for your time and assistance.
use send_data in your controller action to open required files in the browser.
Check out the following SO question for more info

Fill form pdf with flex

I'd like to fill a pdf form with flex.
Data are on my air application and I want to use those to fill a pdf file store on my computer.
Do you have an idea to do that?
thanks
For PDF generation I've used AlivePDF. It works well once you figure it out.
Have you tried AlivePDF with the alivepdf-template extension (they're both available on Google Code)?
Here's a sample of how to use the extension: http://gonzalo.huerta.cl/?p=3