-
1. Re: [JS][CS4] - Create outlines of all textFrames in document
csm_phil Nov 18, 2011 7:17 AM (in response to booyajamo)Hi Lindsay,
Can you please try the below JS code is convert to all the text frame texts and tables(cells) texts to create outlines creation.
Below i am using the try{}catch{} because i escape the dummy text frames and cells, i.e, no characters in this text frame and cells, so i used try{}catch{}.
var myDoc = app.activeDocument; var myStory = myDoc.stories.everyItem(); var myTable = myStory.tables.everyItem().cells.everyItem(); try{ myTable.createOutlines(); }catch(e){}; try{ myStory.createOutlines(); }catch(e){}; alert("Done!");thx
csm_phil
-
2. Re: [JS][CS4] - Create outlines of all textFrames in document
booyajamo Nov 18, 2011 12:09 PM (in response to csm_phil)Hi Phil,
I really appreciate your help. Did you try the script and get it to work? I've tried it on a few files and it doesn't seem to be working fully. The table text is outlined but the regular textFrames are not. Any reason that might happen? That's the same result I was getting when I was trying
var doc = app.activeDocument; var textFrames = doc.textFrames; with(doc) { while (textFrames.length !=0){ textFrames[0].createOutlines(); } }but INDD would get held up and eventually timeout without completely executing the script.
Thanks for your help!
Lindsay
-
3. Re: [JS][CS4] - Create outlines of all textFrames in document
Nagaraj Muthu Nov 18, 2011 9:29 PM (in response to booyajamo)hi,
try this js code here.
var doc = app.activeDocument;
var textFrames = doc.textFrames.everyItem().getElements();
for (var i=0; i< textFrames.length; i++) {
textFrames[i].createOutlines();
}
-
4. Re: [JS][CS4] - Create outlines of all textFrames in document
Shonkyin Nov 18, 2011 10:11 PM (in response to booyajamo)This can be done with just a single JS code:
app.activeDocument.textFrames.everyItem().createOutlines();
Shonky
-
5. Re: [JS][CS4] - Create outlines of all textFrames in document
csm_phil Nov 19, 2011 1:43 AM (in response to Shonkyin)Hi Shonky,
Your code very short nice, however document have any empty textframe that would be throw the error right. So i changed try catch.
However but the table text frame not converted only coverted the cells texts only.
try{ app.activeDocument.textFrames.everyItem().createOutlines(); }catch(e){};thx
csm_phil


