Copy link to clipboard
Copied
Hi everyone,
Is there a way to expand a text item on Illustrator through ExtendScript?
To give an example, consider this pointText on an Illustrator Artboard:
If I expand it (found in the Object tab->Expand), the text "explodes" into a group, so to speak, of text letters of CompoundPaths
I'd like to know if there is any way I can do this expanding feature through ExtendScript.
Regards,
John Joy
or perhaps
textRef.createOutline()
for pathItems you'll need
app.executeMenuCommand('OffsetPath v22');
but pathItems must be selected first
Copy link to clipboard
Copied
Hi @John Samuel Joy,
app.executeMenuCommand('outline');
will outline the selected text frame.
- Mark
Copy link to clipboard
Copied
or perhaps
textRef.createOutline()
Copy link to clipboard
Copied
Haha! Yes. Much better. Forgot that in the heat of the moment. Doh!
Copy link to clipboard
Copied
😆😆 it happens.
Copy link to clipboard
Copied
THANKS A BUNCH!
Copy link to clipboard
Copied
As a follow up, how do I expand a line inserted via Script (which is really a PathItem)?
I've tried to use createOutline for the same but it pops up as an error.
Any wisdom here?
Thanks again!
Copy link to clipboard
Copied
for pathItems you'll need
app.executeMenuCommand('OffsetPath v22');
but pathItems must be selected first