I found out that createOutline() is the right function to convert Text into Paths. But I have strange bug, I think.
This is my code:
var position = new Point(100,-100); var textItem = new PointText(position); textItem.content = "1234"; textItem.characterStyle.font = app.fonts["Arial"]; var outline = textItem.createOutline(); outline.fillColor = new CMYKColor(1, 0, 0, 0);
and this is the result:
looks like if the character gets a shift (2 becomes 0, 3 bekomes 1 etc.)
I am using (Mac OS X 10.6.6 Illustrator CS 5 (15.0.2) and Scriptographer 2.9.070)