Re: Hey!!

78 views
Skip to first unread message

charles thomas

unread,
Apr 20, 2013, 6:02:50 AM4/20/13
to raph...@googlegroups.com
You could upload your SVG at:

There are other converters to. They are all slightly different. The above converts SVG into javascript. Note that it will create
(1)Absolute path. 
(2)Transforms are removed. 
(3)Raphael path is produced (Eg SVG circle is turned into a path)

Hope that helps..

From: Pratik pandey <pratik.p...@gmail.com>
To: raph...@googlegroups.com
Sent: Thursday, April 18, 2013 11:53:20 AM
Subject: Hey!!

Can i draw SVG data onto a canvas with the help of Raphael.js? --
You received this message because you are subscribed to the Google Groups "Raphaël" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raphaeljs+...@googlegroups.com.
To post to this group, send an email to raph...@googlegroups.com.
Visit this group at http://groups.google.com/group/raphaeljs?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


Pratik pandey

unread,
Apr 22, 2013, 1:57:28 AM4/22/13
to raph...@googlegroups.com, charles thomas
Sorry for the late reply, but i am facing a different problem now. The code contains both html tags and svg, and i was finding it difficult to convert it into an image..so is that possible?

Clifford Heath

unread,
Apr 22, 2013, 2:38:52 AM4/22/13
to raph...@googlegroups.com
On 22/04/2013, at 3:57 PM, Pratik pandey <pratik.p...@gmail.com> wrote:
> Sorry for the late reply, but i am facing a different problem now. The code contains both html tags and svg, and i was finding it difficult to convert it into an image..so is that possible?

Glib answer: Yes! Open it in a browser, and the image will appear before your eyes.

Optimistic answer: Yes! Find an SVG-to-image rendering tool (wkhtmltopdf perhaps?), and render it.

Actual answer: No… unless you open it in a browser and take a screenshot :(

Clifford Heath.

Pratik pandey

unread,
Apr 22, 2013, 6:04:09 AM4/22/13
to raph...@googlegroups.com
Unfortunately, I need to find a client side solution, hence i cannot use wkhtmltopdf or phantomjs etc..So it seems its the final answer for me..
Reply all
Reply to author
Forward
0 new messages