We are using Highcharts for our charting application. We are displaying 16 bar charts on a webpage. We need to provide exporting feature (a button) through which all charts on the page get exported to a PDF file.
We have implemented it using the hack suggested on the Highcharts website. http://www.highcharts.com/docs/getting-started/frequently-asked-questions#export-multiplesamples/highcharts/exporting/multiple-charts/.
However,when we export it, all 16 charts are coming on a single page in pdf. We want page breaks so that 4 charts can be shown on each page.
Is there any way we can achieve this ? Please help.
Any help will be appreciated.
Thank you.
Related
I am using Organizational Chart Macro extension in xwiki to display chart, but after using Simple Organization Chart using json, page does not show the content. So , need to refresh the page 3 to 5 times.
what could be the cause for that page content loading problem?
given that the functionality for exporting graphs to SVG or PNG in the Neo4j server page is broken (see SO article), are there any utilities out there that can export a graph from Neo? something that would produce a PDF perhaps?
With not many changes, you could make it work with http://www.cloudformatter.com/CSS2Pdf to format the SVGs in browser to PDF. That set of pages has some d3 samples like this: http://www.cloudformatter.com/CSS2Pdf.SVGCharts.d3Charts
I took one of the sample charts and rendered to PDF through the Javascript and the remote formatter. The page I selected was here and I took one of those charts:
http://graphgist.neo4j.com/#!/gists/1428842b2170702400451777c2bc813f
The code needs some minor change to ensure that Neo4j puts the svg namespace on the element. The samples on that page do not. But the rendering is near perfect. See the web page on the right and PDF result on the left. I only formatted the SVG and not the whole page (where the silver background exists) and that seems to be the only difference.
I have a page of about 10 embedded PDF docs. My question is there another option that would use smaller file sizes or something so they don't bogg down the page when visited? Even convert PDF to something else if possible. Right now they are all in an accordion jquery and run with Scribd. Maybe something similar to this would work.:
scrolling text box
If you want the jqueryui to download different data for each tab you need to put an empty div inside each section and then set an on open (I am not familiar with jqueryui but maybe the activate event?) and create an ajax call to get the relevant pdf and save it to the empty div.
There are lots of questions about ajax in jqui accordion here here and here for example.
I'm running phantom using their rasterize example script to create a single-page pdf of a page.
I have several different pages that I would like to rasterize and concatenate into a multipage pdf file. Is this possible with what is currently there or do I have to bring a tool like pdftk into the mix?
(alternately, is there another node module that I can use for this - I found pdftk-helper but it's shall we say...unfinished)
Add to following from where you want to start a new page:
<div style="page-break-before:always;"></div>
More information about this can be found here:
http://we-love-php.blogspot.be/2012/12/create-pdf-invoices-with-html5-and-phantomjs.html
I wasted few hours for looking the answer and I'm very sad cause I didn't find anything usefull. I have a CMS in cloud and it provides content for diffrent devices like www site and my new windows store application.
I want to use html formating. I've already created app in c# and xaml and I'm wondering how can I display html
I was happy cause I found http://nuget.org/packages/RichTextBlock.Html2Xaml but I can't make it work. I get blank page. No text, no error, no nothing.
Can someone pls tell me how can I display html in my app ?
Use a WebView/WebViewBrush or use HTML Agility Pack and implement the styles/rendering yourself.
In WinRt app you can display html code by some ways:
Using WebView with it's NavigateToString("html content")
Using WebViewBrush and displaying it in rectangle
If you had your .html file local - you can open it with myWebview.Navigate(new Uri("ms-appx-web:///" + myPath));
You can make a screenshot of webpage by the method wich I describe here and open it as a picture.
For more info, see the WebView control sample