Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
1  
Just on a side note: Why do you want to convert them into SVG in the first place? What is the point in archiving them that way? – slhck Jun 24 '11 at 14:52
    
I need to make many pages of documentation in html available for a constrainted device. I will not have an html renderer available, but will have an svg rendering engine. SVG will, hopefully, result in smaller file sizes than just screen shots of html pages. – jedierikb Jun 24 '11 at 15:02

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 between EPS and SVG format

share|improve this answer
    
Problem is that you then get page breaks at impossible places. – Christian Nov 20 '12 at 16:49

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .