[PD] pd -> svg

Jonathan Wilkes jancsika at yahoo.com
Fri May 3 19:40:25 CEST 2013

A few points:

* you can open svg in a browser
* you can _zoom_ svg in a browser for decent results (it's a vector drawing)
* in safari you can select text in an svg (but not Firefox because of a bug, although you can stil <ctrl-c> it)
* much (but not all) of tk canvas has corresponding drawing instructions in svg.  unless i'm missing something the subset of tk canvas commands used by Pd all have corresponding instructions in svg

Here's what I want to do (in Debian Wheezy):
1) Open pd-extended
2) Create new patch
3) Create [f]
4) Right click to open up float-help.pd (PDDP revised version)
5) Click print and save to test.ps
6) in cli type:
pstoedit -f plot-svg test.ps test.svg

But I get this error:

**** Warning: glyf overlaps cmap, truncating.

Anyone know what this means?  It ends up cropping the top and bottom of the patch.  Google search for the error doesn't help much.

In the future it'd probably be better to parse a *.pd file directly to convert to svg, but if I can convert a ps to svg like this I think I can script it and get some nice looking online searchable documentation with very little work. :)


More information about the Pd-list mailing list