0

There are two questions about the SVG (Scalable Vector Graphics):

1) What is the best JavaScript library used to create vector graphics SVG?

2) Can I then received SVG vector graphics, the browser, export to a PDF file? If so, how can this be accomplished?

Eliran Malka
  • 15,821
  • 6
  • 77
  • 100

2 Answers2

3

Both of your questions are already answered on Stackoverflow:

  1. Creating SVG graphics using Javascript?
  2. Embedding SVG in PDF (exporting SVG to PDF using JS) or using java: How to programmatically convert SVG to PDF on Windows?
Community
  • 1
  • 1
zengr
  • 38,346
  • 37
  • 130
  • 192
0

About your first question, the best option I came across (and used heavily in a project) is Raphaël. I'm sure you will easily find a server-side solution to converting svg to pdf, but if you need to convert a Raphaël canvas into standard SVG data then here's a plugin wrote for exporting that data.

inhan
  • 7,394
  • 2
  • 24
  • 35