[Dev] SVG to PDF Converter?

2015-01-21 Thread Jerad Rutnam
Hi, Are we using any SVG to PDF convert library in our products? Or is there anyway I can achieve this? ex:- http://d3export.housegordon.org/ Thanks, Jerad -- *Jerad Rutnam* *Software Engineer - UI* WSO2 Inc. lean | enterprise | middleware M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2

Re: [Dev] SVG to PDF Converter?

2015-01-21 Thread Sagara Gunathunga
Can you please do some research and come up with possible options so that we can make a conclusion. Thanks ! On Wed, Jan 21, 2015 at 2:45 PM, Jerad Rutnam wrote: > Hi, > > Are we using any SVG to PDF convert library in our products? Or is there > anyway I can achieve this? ex:- http://d3export.

Re: [Dev] SVG to PDF Converter?

2015-01-21 Thread Vanjikumaran Sivajothy
AFAIK, Wso2 products does not use any such feature. However, What is your exact requirement and use case? On Wed, Jan 21, 2015 at 10:15 AM, Jerad Rutnam wrote: > Hi, > > Are we using any SVG to PDF convert library in our products? Or is there > anyway I can achieve this? ex:- http://d3export.ho

Re: [Dev] SVG to PDF Converter?

2015-01-21 Thread Jerad Rutnam
Hi Vanjikumaran, We have developed a Dependency Graph feature for G-Reg using D3. And we are thinking of having a function to export the graph to print. So thought something like exporting to .PDF would be nice. Thanks, Jerad On Wed, Jan 21, 2015 at 7:20 PM, Vanjikumaran Sivajothy wrote: > AFA

Re: [Dev] SVG to PDF Converter?

2015-01-25 Thread Jerad Rutnam
Hi Sagara, Currently i'm working on the feature "fit to screen". Once that and other critical issues are fixed, ill do a research on this. Regards, Jerad On Thu, Jan 22, 2015 at 8:27 AM, Jerad Rutnam wrote: > Hi Vanjikumaran, > > We have developed a Dependency Graph feature for G-Reg using D3.

Re: [Dev] SVG to PDF Converter?

2015-01-25 Thread Jerad Rutnam
Hi Dimuthu, Thanks, I'll check this and give you an update. Regards, Jerad On Mon, Jan 26, 2015 at 10:30 AM, Dimuthu De Lanerolle wrote: > Hi Jerad, > > I think you can try apache batik-transcoder dependency for this [1] > > [1] > https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples

Re: [Dev] SVG to PDF Converter?

2015-01-29 Thread Dakshika Jayathilaka
Hi, I found simple lib to convert SVG to Canvas. https://github.com/gabelerner/canvg Then you can export it as a image or can convert to PDF as wel.. Regards, *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Mon, Jan 26, 2015 at 10:44 AM, Jerad Rutn

Re: [Dev] SVG to PDF Converter?

2015-01-29 Thread Jerad Rutnam
Hi Dakshika, Thanks for this. I tried *svgenie *[1] library earlier, which is depends on *canvg.js. *But it didn't work for me. Anyway didn't try it pure, so i'll give a try and send you an update. [1] - https://github.com/Causata/svgenie Regards, Jerad On Fri, Jan 30, 2015 at 10:20 AM, Dakshik

Re: [Dev] SVG to PDF Converter?

2015-01-29 Thread Jerad Rutnam
And if anyone wants to convert SVG to Canvas without a library, you can use this method. (*Only issue I faced here is that it doesn't have a method to get external styles*) var svgString = new XMLSerializer().serializeToString(document.querySelector('svg')); var canvas = document.getElementById("

Re: [Dev] SVG to PDF Converter?

2015-02-04 Thread Jerad Rutnam
Hi Dakshika, I tried *canvg.js* purely, and still no luck. I even tried some other methods and libraries for this, ex:- https://github.com/exupero/saveSvgAsPng But nothing worked so far. I just need to find a method to insert computed css styles to inline. Sometimes it might work. Found few other

Re: [Dev] SVG to PDF Converter?

2015-02-04 Thread Dakshika Jayathilaka
Can you share your code. then i can have a look.. Regards, *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Feb 5, 2015 at 12:11 PM, Jerad Rutnam wrote: > Hi Dakshika, > > I tried *canvg.js* purely, and still no luck. I even tried some other > m