Exporting Mutliple RadHTML Charts into single PDF/PNG

Post questions on how to use or achieve an effect in Inkscape.
Khadeer
Posts: 3
Joined: Wed Jul 01, 2015 8:29 pm

Exporting Mutliple RadHTML Charts into single PDF/PNG

Postby Khadeer » Wed Jul 01, 2015 8:34 pm

Hi

I have multiple RadHTMLCharts in my page. I need to export all RadHTMLCharts in Single PDF documenet or single PNG Image.

I am unable to export if concatenate the SVG String before export.

Can someone help me in exporting multiple charts.

Thanks in Advance
Khadeer

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Exporting Mutliple RadHTML Charts into single PDF/PNG

Postby v1nce » Wed Jul 01, 2015 10:01 pm

HI,

Could you be a bit more precise
Who will export ? You ? "Anybody" user
How often (one shot ?)
Does it need to be client side ? (From which browser ?)

Khadeer
Posts: 3
Joined: Wed Jul 01, 2015 8:29 pm

Re: Exporting Mutliple RadHTML Charts into single PDF/PNG

Postby Khadeer » Wed Jul 01, 2015 11:23 pm

Hi V1nce,

I have a web page with 3 RadHTMLChart which shows 3 different data.

Web page users need to export all Charts in a single PDF document or single PNG Image by using "Export Button".

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Exporting Mutliple RadHTML Charts into single PDF/PNG

Postby v1nce » Thu Jul 02, 2015 5:57 am

Have you looked at http://www.telerik.com/support/code-lib ... ng-and-pdf ?

let's suppose this fixes the first part of your problem (svg => pdf or img)

The second part would be to concatenate 3 imgs (or pdfs)
If the img/pdf ends up clientside then reupload them to server (using ajax) to a dedicated page (or method) that will do the concatenation

to concatenate 3 imgs the basic function of c# image namespace should be sufficent
http://stackoverflow.com/questions/2075 ... catenation

to concatenate 3 pdfs use a library like pdfsharp
http://pdfsharp.com/PDFsharp/index.php? ... &Itemid=45

other option would be to do the whole thing clientside using
canvg (svg =>canvas object)
http://gabelerner.github.io/canvg/examples/index.htm
multiple canvas => canvas => png
http://www.williammalone.com/briefs/how ... l5-canvas/
http://stackoverflow.com/questions/9238 ... pg-png-pdf


Return to “Help with using Inkscape”