SVG Reader for Matlab

Ok, this is a really old project.

In 2007, I submitted my tool on http://www.mathworks.com/matlabcentral/fileexchange/ and it has been downloaded around 1000 times until 2010 when the website site Mathworks changed its license from something to BSD.

I re-submitted this tool with a new license but dependencies were still under GNU. Admins were unable to respond clearly on what should I do and the tool has been removed.

Here it is read-svg_java.zip … again :-)

First release 12 Mar 2007 (Updated 11 Apr 2007)
Summary Import and infinite area/pixel zoom on SVG file
Desc In case of error with SAX2:remove batik.jar from /java/javaext/ dir and use javaaddpath(). (see read.m)
Requirements

Zip File Content

  • read-svg_java/lib/batik-all.jar,
  • read-svg_java/lib/xerces.jar,
  • read-svg_java/build.xml,
  • read-svg_java/README,
  • read-svg_java/ReadSVG.jar,
  • read-svg_java/star01.svg,
  • read-svg_java/src/ReadSVG.java,
  • read-svg_java/src/SizeHandler.java,
  • read-svg_java/src/Main.java,
  • read-svg_java/src/BufferedImageTranscoder.java,
  • read-svg_java/read.m,
  • read-svg_java/Changelog

README

Export a pixel/area of a svg file to the desired resolution

I don't really know how to do it under Windows or Mac but with Linux, the following should works:
Install the dependencies:
- ant (http://ant.apache.org/)
- xerces >=1.3 (http://xerces.apache.org/xerces-j/)
- batik >=1.6 (http://xmlgraphics.apache.org/batik/)

Locate the files batik-all.jar and xerces.jar on your hard drive and copy them into the folder read-svg_java/lib/

Run: ant run
It should compile the sources and try to run a demo.
Once the jar is built, take a look at read.m to see howto use the class from Matlab.

author: <pierre.gronlier@gmail.com>
Print/export