How to outline text in illustrator scripting

I want to create storke in text in illustrator scripting and found one method too createoutline(),But How i used this method for text outline.

var docRef = app.activeDocument;
var colorForText = new CMYKColor();
    colorForText.black = 0;
    colorForText.cyan = 0;
    colorForText.magenta = 0;
    colorForText.yellow = 0;
var colorForTextOutline = new CMYKColor();
colorForTextOutline.black = 100;
colorForTextOutline.cyan = 0;
colorForTextOutline.magenta = 0;
colorForTextOutline.yellow = 0;
var outlineSize = 5;
for (i = docRef.textFrames.length-1; i >=0; i--) {
    for (j = 0; j < docRef.textFrames[i].words.length; j++){
        docRef.textFrames[i].words[j].filled = true;
        docRef.textFrames[i].words[j].fillColor = colorForText;
var outline = docRef.textFrames[i].duplicate(docRef, ElementPlacement.PLACEATEND);
    for (h = 0; h < outline.words.length; h++) {
        outline.words[h].filled = true;
        outline.words[h].fillColor = colorForTextOutline;
        outline.words[h].stroked = true;
        outline.words[h].strokeColor = colorForTextOutline;
        outline.words[h].strokeWeight = outlineSize;
//docRef.textFrames[i].createOutline();
//outline.createOutline();
createOutline(); converts live text to outlines, if you are trying to just create a stroke you have to go about it a different way. This script will take the text and copy it, put it in back, and put a stroke behind on the behind text so it has an effect similar to an offset path. The way I have it leaves the text live, if you were wanting to convert the text to outlines as well I left that part written in the bottom of the script. There is also a StrokeJoin parameter as well.
Hope this helps!

Similar Messages

  • How to call text file using Script in Data Integrator

    Dear All,
    Can any one assit me in how to call a text file using script with the help of Data Integrator.
    and one question ?
    M having 32 csv files i want to club thos 32 csv files into one table with the help of Data Integrator, can
    any one assist me.

    mary,
    since you knew the file name ,when clicked in name send to server,read the file and write to servlet outputstream.
    I think this would help you.
    If anything wrong in mycode ..forums will help you further
    BufferedInputStream bis=null;
    BufferedOutputStream bos=null;
    int bytesRead=0;
    byte buff[]=new byte[1024];
    File f=new File(test.txt);
    try{
         bis= new BufferedInputStream(new FileInputStream(f));
         bytesRead=bis.read(buff,0,buff.length);
         if(bytesRead!=-1){
              // create a BufferedOutputStream from ServletOutputStream
              bos=new BufferedInputStream(response.getOutputStream());
              do{
                   bos.write(buff,0,bytesRead);
              }while((bytesRead=bis.read(buff,0,buff.length))!=-1)
    }catch(Exception e){
         ////error handling
         }

  • Outlining text in illustrator

    Hi-  I want to outline text like in the photo attached so the outline is to the right- appearing to be behind the text.   I also would like to know how to drag out the L in 'Lounge'-  any help would be great- thank you!!

    To extend the L, draw the extension with the pen tool, covert the L to outlines, then use pathfinder to combine the shapes. For the shadow effect, first add an outline behind the word, same color as the background. Then put a copy of the word behind the original word, and recolor it.

  • Random character appears when outlining text in Illustrator CS4 !!!

    Hi All,
    Firstly, any help would be greatly appreciated.
    My problem is shown below, I have an artwork containing live text produced in Illustrator CS4 on a Mac. On outlining the file for forwarding to prepress, a random "D" appears at the end of one of the sentences. I have been unable to find any reason for this. The "D" is not visible when the document is viewed in Outline Mode, it is not visible when hidden characters are shown, it cannot be selected using the text cursor, it appears regardless of what typeface is used, and there are no effects or transparencies applied to the text. Obviously this is of great concern, we produce artwork using live fonts, and on approval outline the files and forward them to a prepress bureau, the result of random characters appearing on printed material could prove very costly.
    If the Illustrator document is saved as a CS2 compatible file from CS4, opened in CS2 and outlined this does not occur.
    Thanks,

    Same thing here, but in CS3. Files came from a client, but appear to have been created and saved in CS3 also. I couldn't fix it with CS5.
    In our case, it's a phantom W that sits on its own line before another W. No hard return, no soft return, no spaces, nothing shows with invisibles on. You can select it (using the shift and arrow keys) and format it, and the changes show up when you outline it. Select it and type a different character, and it winds up on the next line next to the "real" W, as it should. Double-clicking the word selects the phantom letter as well.
    Type is area type, and it's rotated 180° (packaging). Original fonts were Trajan Pro and UniversLTStd.
    Anyone?

  • Outline stroke with Illustrator scripting

    Hello everybody!
    I'm making a script. I need to do the outline stroke action. I can't find it in the extendscript anywhere.
    I can do it from a applescript and call it from my extendscript in CS6 BUT I need my script to run CS5.5 and run on a windows machine:
    tell application "System Events"
        click menu item "All" of menu "Select" of menu bar item "Select" of menu bar 1 of process "Adobe Illustrator"
        click menu item "Outline Stroke" of menu "Path" of menu item "Path" of menu "Object" of menu bar item "Object" of menu bar 1 of process "Adobe Illustrator"
    I have also found a way to do this in CS6 (app.executeMenuCommand ('Live Outline Stroke'))  but i havent got it working yet. And its for CS6+ so I can't really use it if I cant force my users to upgrade
    Anyone out there with an answer? It would help me alot. As I understand it you can call functions withing extensionscript if you have the right "action code" for it. Using the ActionDescriptor.
    var desc3 = new ActionDescriptor();
    I have looked around and I cant find any documentation with a complete reference with the action codes. Do any one of you out there the action code for "Outline stroke"?
    Thanks so much for your answer and effort.
    Regards,
    Ruy Ramos

    Hello,
    Thank you for this!! My question now is, is it possible to do this comand without the UI coming up?
    I tried to set:
    UserInteractionLevel.DONTDISPLAYALERTS
    but nothing changes.
    Do you know where there is a list of all the menucomands?
    Thanks again
    Regards,
    Ruy Ramos

  • How to give line height to text in AI Script

    how to give line height to text in AI Script

    I want to increase these three lines line height differently means i want script to increase the line height of outlined text

  • How to correlate items in Illustrator document in GUI vs scripting objects?

    As a novice to Illustrator and Illustrator scripting. I notice that without good knowledge of Illustrator (the GUI and/or scripting), it's a bit tricky to correlate the type of item/object an item is as seen in the Illustrator GUI selecting the item on screen and/or seeing it in the layer's window. Because both of those don't indicate the matching Illustrator scripting item/object type, and I have to guess at what it is (or iteratively/recursively dump all items and see if I can figure out what is what from the dumped items from the script comparing to the info/properties in the UI).
    Or is there some mapping feature that will indicate this that I overlooked? If not, how best to correlate?
    As some examples:
    * how to figure out what type of object text is that we see in the Illustrator document (assume total novice, not knowing specific text types in Illustrator)
    * how to figure out whether a certain item in a layer is a page item, path item, or both? I can't tell.

    I assume this is a continuation from your previous thread?
    https://forums.adobe.com/thread/1765707
    The only thing I have ever seen (regarding a visual reference of any kind from Adobe) is this regarding the Application SDK:
    http://cssdk.s3-website-us-east-1.amazonaws.com/sdk/2.1/docs/WebHelp/app_notes/AI_obj_mode l.htm
    [^ Pretty impressive (insert sad/pathetic) coming from the market leader in graphics software huh?]
    Anyway, it looks like you are at a crossroads of needs and wants and may have to fulfill each of these yourself due to their lack of current existence. ;-)

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • How to color the text  elements in script?

    how to color the text  elements in script?
    byeeeee
    plz send the answers

    Hi,
    Please go through my blog to know how to do color printing in SAP scripts.
    White Paper on 'Color Printing in SAP Scripts'
    Regards,
    Sireesha Ch

  • How to assign modified forms (SAP scripts etc.,) to Dunning texts

    Hello, how do I assign forms (SAP scripts etc.,) to dunning texts according to no 5 above?
    I've copied the form f150_dunn_01 and modified it. Now I want to assign my modified form to dunning text. In txn fbmp I have created new procedure and when I clicked on Dunning texts it takes me to dunning text screen where I should be able to assign my modified form. But the screen is greyed out and not editable. Is there anything I'm missing or I've permission issue?
    Please help
    Regards
    Naz
    Most of the config for Dunning is done with TCode FBMP.
    Key Steps are :-
    1.     Define the dunning procedure or use the standard
    2.     Define the dunning levels (desired stages of reminder)
    3.     Define the dunning interval (frequency of reminder)
    4.     Line item grace periods & Min.days in arrears (acct) govern the criteria for picking items to be dunned along with Minimum amounts
    5.     Assign forms (SAP scritps etc.,) to dunning texts. Forms contain the contents of the reminder notice and the format of notice.
    6.     You can include the Sp GL Transactions as well.
    7.     Customer/Vendor Master Records needs to be updated with the Dunning
    8.     Procedure etc, Dunning tab in the master data
    9.     Use F150 to run.

    Hi Praveen,
    Ok let me go through the steps that I have done so for.
    1. New dunning procedure 004 been created in Txn FBMP
    2. Then by choosing the assigned dunning procedure 004, trying to update the form by selecting the company code and then Dunning text. But the screen is grayed out.
    Please pass me your email address then I will send you the screen shoots.
    Thanks
    Naz

  • How to provide space and new line to the text in AI Script

    how to provide space and new line to the text in AI Script

    ?? can you explain better, can you at least add another sentence?
    space
    var mySpace = " ";
    new line
    var newLine = "\n";

  • Referencing Bridge folder from an Illustrator script... How?

    I need to access a file in the Bridge directory, from a script in Illustrator. I can do this for PC with a concrete reference like this:
    var loc = "C:/Program Files/Adobe/Adobe Bridge CS3/webaccesslib.dll"
    How do you construct a string to get at it on a Mac?
    thanks,
    -J

    Go to the scripting Forums and select the Illustrator Script forum and ask there.

  • How to add text animator to text layer in script?

    Hello,
    I'm a beginner in scripting and trying to create a script to apply set of expression control and text animator.
    I want to add text animator property to selected layer, however I keep having error with the codes below.
    selectedLayers[0].Text.Animators.addProperty("ADBE Text Animator");
    selectedLayers[0].Text.Animators.addProperty("ADBE Text Position");    //error on this line
    What is the correct code?
    Thanks a lot.

    Thanks Dan, that works!
    However, I hit another road block. I tried to add a range selector under the animator group with the codes below and both returned error.
    myAnim.property("ADBE Text Animator Properties").addSelector("ADBE Text Range Selector");
    myAnim.property("ADBE Text Animator Properties").addProperty("ADBE Text Range Selector");
    After reading this post. how to access text proprety
    Its seem text animator has different codes for accessing different properties.
    I've searched on the Adobe scripting guide and couldn't find the exact code for the property (e.g. ADBE Text Position 3D ).
    It would be much appreciated If anyone could recommend a scripting book for After Effects.
    Thanks.

  • How to position text in a window in sap script

    Hi all,
    I have a sapscript and in the main window of that, i have created 2 boxes. Now some line items get printed in the first box. But my query is about putting some text in the second box. How to put text at a certain position in a window in sapscript ??

    Hi ,
    If the Created boxes are side by side, use Tab or paragraph format (right aligned). If the second box is at the bottom of the main window use new-line command and create a text element and all the same using print program
    Regards,
    Chandra

  • Can we stop Illustrator from outlining text in a PDF?

    I've opened a pdf and get the following message, "To preserve appearance, some text has been outlined", that's it. There's no other errors. I have all the correct fonts and most of the pdf displays correctly. But every few lines or so there's a line or even just a couple of words that have been outlined by illy. This results in the text looking slightly bolder than the surronding text. I could just delete the outlined text and rewrite it, but since i'm updating just the address on about 20 product brochures I find it a massive inconvenience and a huge waste of time.
    Any ideas?

    The OP assked a reasonable question and the internet often hides intent.
    So they did not realize it is hard for those on this side does not know the circumstance on their end withou them defining such condition.
    But I will make a suggestion. It might be worth a try. Tell your superiors there is no way to opeen the file without the text being outline. Don't tell them you can replace the text' just that the only way to open the file without the text being outline is to buy the original app.
    The worse they can tell you is to replace the text
    and best is they might break down and not be so cheap.
    And please don't get angry those people here on the forum who are taking their own time to help you.

Maybe you are looking for

  • Cannot copy file from desktop to media card

    Whenever I try to copy a file from my desktop to my media card I get an error. When I use the desktop manager software I get the message 'one or more files cannot be copied: FILE_NAME'. When I use Windows Explorer to try the same thing I get the mess

  • Function module to pass senders email id.

    I need a FM wherein the senders as well as recievers email should be passed.The objective being that we have jobs on auto scheduler.The SO_NEW_DOCUMENT_SEND_API1 FM pickups the userid of execution job which has been scheduled to run.I would like the

  • Can I use airport express to extend my network AND stream iTunes???

    I have an airport extreme connected to the cable modem and sending a signal out to my home network. I also have a powerbook and an airport express connected to the home stereo. My question is, can i use the express to extend my extreme signal (to rea

  • Why does my hp say it's not genuine?

    My computer is: HP TouchSmart 310-1125y Desktop PC My operating system: Windows 7 home premium Error Message (located at lower right side of screen): " Windows 7---Build 7601---This copy of Windows is not genuine" all i want to know is how do i fix t

  • How to make Lenovo recognize external monitor as default at boot time?

    Hello, I suspect this is a rather simple fundamental Windows operation procedure, but I am going bald - tearing my hair out - trying to get this to work!!  I use Windows XP on a Lenovo 3000 V100, with Intel Graphics Media Accelerator Driver (Intel 94