9

I would like to convert some somewhat straightforward web pages (no javascript, minimal CSS) into SVG for archiving. I am wondering if there is a suggested tool or workflow for this conversion?

My current thought is to somehow open the pages in Adobe Illustrator and then export to SVG. However, that "somehow" is a big question mark. Maybe something like this will open HTML into Illustrator?

slhck
  • 235,242
jedierikb
  • 539

3 Answers3

4

Perhaps you can print it to a vector format like PDF which is in-principle convertible to SVG.

If you print to PDF you can try converting it to SVG using Inkscape and/or http://www.cityinthesky.co.uk/opensource/pdf2svg.

You can also try printing to PS/EPS and converting via Uniconverter or Scribus. See Converting from EPS to SVG format

eug
  • 974
1

Here is a tool which gets you from html to pdf. Then you can step from pdf to svg (which is presumably easier than html to svg directly): http://wkhtmltopdf.org/

jedierikb
  • 539
1

I would dig into some kind of text editor and write some XSL, transforming the HTML/XHTML to SVG. Transformation could be done in different ways.

Obviously this requires that your HTML is valid XML - and maybe it could be with some small changes.

One advantage to this approach is that you have 100% control over the result (SVG document). A disadvantage is that it's a little complicated.

Gareth
  • 19,080
chrwahl
  • 111