Vertical text using script

In one of my templates, the designer has vertical text in a textframe in the first page. I don't think he used the "type on a path line" tool. I don't think he uses a style do it either.
In my script, I add 2 pages to the template and 2 textframes. I want the textframes to show the same vertical text in the same geometric bounds. How do I do this using the script?

One more question, is it possible to have two text boxes side by side using this script and have them flex or move depending how long the text is? Or would this require more complex code?
thanks

Similar Messages

  • HELP!!! Creating Text using script

    Hi there,
    I am writing a script which creates a text frame and adds text in it. The problem is, I want to add some information below everytime on many documents. Instead of copying from other sources everytime, I thought of writing a scirpt which by clicking creates a text frame and puts text in that because it is the same for all. Now two issues:
    1) It is coming but in the first page. I need that in the working page, for example clicking that it should come in page 2 or 4 and not in the first page.
    2) The text has a word should be in quotes giving like that the script shows error. My example code is given below:
    var myDocument = app.activeDocument;
    var myTextFrame = myDocument.textFrames.add()
    myTextFrame.geometricBounds = ["11.2in", "8in","10.99in","0.5in"];
    myTextFrame.contents = "This is a "sample" text.
    Please try without quotes first. Without quotes for sample word it is coming in the first page. With quotes it shows error.
    What is the solution. 1) need to add on the current working page. 2) should also include a word within quotes.
    Help really appreciated!

    Hi Prasant,
    1) Add a text frame to the active page
    2) Escape quotes in the string \"
    var myDocument = app.activeDocument;
    // Ruler origin should be set to Page
    myDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
    var myTextFrame = app.activeWindow.activePage.textFrames.add();
    myTextFrame.geometricBounds = ["11.2in", "8in","10.99in","0.5in"];
    myTextFrame.contents = "This is a \"sample\" text.";
    Kasyan

  • How can I show vertical text?

    Hi all, does any body knows how can I show a vertical text using g2.drawString() method?
    For example:
    g2.drawString("Help", x, y);
    I want the text appear like:
    p
    l
    e
    H
    of course with the correct rotation of each character.
    thanks in advance

    Here's the code we use in the JFreeChart project:
         * A utility method for drawing rotated text.
         * <P>
         * A common rotation is -Math.PI/2 which draws text 'vertically' (with the top of the
         * characters on the left).
         * @param text  the text.
         * @param g2  the graphics device.
         * @param x  the x-coordinate.
         * @param y  the y-coordinate.
         * @param rotation  the clockwise rotation (in radians).
        public static void drawRotatedString(String text, Graphics2D g2,
                                             float x, float y, double rotation) {
            if ((text == null) || (text.equals(""))) {
                return;
            AffineTransform saved = g2.getTransform();
            // apply the rotation...
            AffineTransform rotate = AffineTransform.getRotateInstance(rotation, x, y);
            g2.transform(rotate);
            // workaround for JDC bug ID 4312117 and others...
            TextLayout tl = new TextLayout(text, g2.getFont(), g2.getFontRenderContext());
            tl.draw(g2, x, y);
            // replaces this code...
            //g2.drawString(text, x, y);
            g2.setTransform(saved);
        }That bug workaround is causing trouble in some JDKs, try the original code and see if it works for you.
    Regards,
    Dave Gilbert
    www.jfree.org

  • Selecting particular range of style using script

    HI All,
    Can anyone suggest me that how we can select the range of text using script.
    I am having some different para styles say for eg., PS1, PS2, PS3, PS4...........
    I may applyed these styles in some jumping order but except PS1, now I want to select paragraphs with applied style PS1 to stop before the next appearence of PS1 style.
    Like: In a document Para 1, 10, 14, 25 were applied with PS1, so the selection should go in the way like 1-9, 10-13, 14-24 and so on
    Regards,
    love_all

    "The" index of a paragraph is nothing special, it's the index of the first character of that paragraph inside its parent story. In particular, it does NOT tell you "this is the 5th paragraph" or something like that.
    This is because "Paragraph" is an artificial construct inside "Text", not a truly existing first class object. Same as "Line", "Word", "Character", and indeed, any text selection at all.
    Since you already have a "found text" array, "the index" of the nth entry's paragraph -- with the constraint described above -- can be simply found by using foundText[n].paragraphs[0].index (the index of the first character of your foundText is foundText[n].index).
    If you DO need to know the nth number of the paragraph, search this forum. I think Peter Kahrel answered to a post to answer that exact question.

  • 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
         }

  • Using Standard text in scripts

    Hi all,
    I had a problem while printing standard texts in scripts.
    I Know how to print standard text if we have to print it from the begining of window using
    INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PAR
    But my problem id i have print it after a hard coded text like
    Delivery schedule: 'here i have to print the standard text'.
    can any one please help me out how to solve the problem
    Thanks & regards
    sreehari p

    Hi,
    Here's one my brother taught me - you can actually trick the system to accommodate this requirement.
    Ensure that you use 2 different paragraph formats in your INCLUDE statement, using the PARAGRAPH and NEW_PARAGRAPH clauses, ie.
    INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PARAGRAPH P1 NEW-PARAGRAPH P2
    Paragraph P2 (which will be used as the first line) should be created as having a Line Spacing value of 1 TW (1 twip) which is less than 1/1000th of an inch.  Also, set the Left Margin value to an offset which brings the text to the right of the Delivery schedule literal.
    Paragraph P1 (which will be used for all subsequent lines) should be set up as normal - ie. use the same paragraph format as that for displaying your "Delivery schedule:" literal.  If you need the text to be indented in line with the first line, then copy your existing paragraph to a new paragraph but set the Left Margin value to the same as that in P2.
    What this does is to output the first line of text indented by the margin after skipping 1 twip, giving the illusion that it's actually on the same line.  Since subsequent lines are output with a normal (or normal/indented) paragraph, that just follows with normal spacing on subsequent lines.
    Hope this makes sense.
    Regards,  Andy

  • Vertical Text in PDF using CFDOCUMENT

    I am using font tag in a CSS file to layout a table header
    using vertical text. In HTML, the vertical text looks fine.
    However, when I convert the table to a pdf using
    <cfdocument>, the vertical text is displayed as horizintal
    text and does not follow the css specified font family, color or
    size.
    Here is the line in the CCS I am referencing:
    .header_vertical {FONT-WEIGHT: bold; FONT-SIZE: 8pt;
    FONT-STYLE: normal; writing-mode:tb-rl; FONT-FAMILY: helvetica,
    arial, verdana, sans-serif; TEXT-DECORATION: none; COLOR: #0f437c}
    This is CFMX7 on a Windows Server 2003 OS running IIS.
    Any ideas???
    Thanks.

    Hi there, did you find a solution to this?
    I had the same issue and no matter what i tried it didn't
    work. I found out that CFDOCUMENT doesn't support CSS2.
    Eventually I came up with a clunky solution, but had no other
    choice. I bought some imaging software called Alagad (
    http://www.alagad.com) which
    produces the vertical text as images on the fly. Its not ideal, but
    there was no ther way I could disply the text.
    Hope this helps you.
    Ally

  • PO for item of service Level short and long text using sap script

    Please let me know how to do the PO for item of service Level short and long text using sap script.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AM

    Hi ,
          In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT '   FM. Then you will get text lines described for a perticular Po ,similarly for item also.
    Thanks,
    Suma.

  • Using TemplateBeginEditable text in Script.

    Hi.
    Sorry for the topic, but I havent no idea how explain this in
    short way.
    I have dozens of pages where I have used template and now I
    need to use that text in a script. Is there any way I can automate
    that?
    <!-- InstanceBeginEditable name="Tuotenumero" -->I NEED
    TO USE THIS TEXT IN SCRIPT<!-- InstanceEndEditable -->
    <!-- start_"AND GET IT HERE"_price-->1,70<!--
    end-->
    Hope someone understood.

    Nope - sorry. Can you try to explain more about what you mean
    when you say
    "use that text in a script"?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Kultsi_" <[email protected]> wrote in
    message
    news:g0h8uo$rhq$[email protected]..
    > Hi.
    >
    > Sorry for the topic, but I havent no idea how explain
    this in short way.
    >
    > I have dozens of pages where I have used template and
    now I need to use
    > that
    > text in a script. Is there any way I can automate that?
    >
    > <!-- InstanceBeginEditable name="Tuotenumero" -->I
    NEED TO USE THIS TEXT
    > IN
    > SCRIPT<!-- InstanceEndEditable -->
    >
    > <!-- start_"AND GET IT HERE"_price-->1,70<!--
    end-->
    >
    > Hope someone understood.
    >
    >

  • How do we identify the standard texts used in a sap script?

    Hi,
    Is there any way that i can identify the standard texts used in SAP scripts?
    Not manually going to each window in the script and checking.
    Will there be any table where I can look ?
    Thanks,
    krishna.

    Hi,
    GO to the forminfo of the sapscript in SE71..and then search for INCLUDE
    after displaying the form...utilities->form info..
    hope this works..
    Thanks
    Naren

  • Using SPELL_AMOUNT for passing converted text to Script

    Hi all,
    I tried to convert number to text using SPELL_AMOUNT function module, and when i specify the variable referring to SPELL inside script layout, it throws me error.
    The script is not allowing me to specify  variables of type SPELL, but allows me to use only elementary data types.
    Pls provide solution apart from using the function module  'HR_IN_CHG_INR_WRDS' (this works)..

    karthikeyan 
    i would suggest you to use subroutine pools for that.
    You can use the PERFORM command to call an ABAP subroutine (form) from any program,
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Field VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80).
    The internal table OUT_TAB contains names and values of the CHANGING parameters
    in the PERFORM statement.

  • Vertical text. Can FireFox display a vertical text? Which HTML tags should be used for that?

    The site http://habrahabr.ru/blogs/css/58732/ recommends a way for using vertical text in HTML/CSS (see example below). However my instance of Firefox 3.6.22 does not display this vertical text. Please let me know your recommendations/
    <html>
    <head>
    <title>1</title>
    <style>
    <!--
    .vertical { overflow:hidden; line-height:30px; position:relative; white-space:nowrap; width:30px; height:200px; border:1px solid #999; }
    -->
    </style>
    <body>
    <div class="vertical">Testing text</div>
    </body>
    </html>

    See: https://developer.mozilla.org/En/CSS/-moz-transform

  • How to get the handle of all text fields in the subforms, using script

    Hi Friends,
    I have around 20 fields in a subform, how can i get the names of all the fields using script.
    I wish to enhance the following script where the field names are hard coded
    thereby the script itself will get the names of the field names.
    var f1 = this.parent.somExpression + ".TextField2" + ",";
    var f2 = f1 + this.parent.somExpression + ".DropDownList1" + ",";
    var f3 = f2 + this.parent.somExpression + ".NumericField1";
    xfa.host.resetData(f3);
    Any help will be greatly appreciated..
    Thanks
    JJ

    Hi Paul,
    Thanks for your comments.
    I achieved the clear contents by resetting, by taking input from your thoughts..
    form1.sub1.sub2.sub3.table_1.addDelete_Top.addDelete.deleteRow::click - (JavaScript, client)
    //Here is my code finally look like..
    //row 1, table_1 are also subforms
    for (var i=1;i<10;i++){
    var myRow = this.resolveNode("table_1.row1[" + i + "]");
    if(myRow.presence == "hidden"){
    i = i-1;
    var myRowDelete = this.resolveNode("table_1.row1[" + i + "]");
    if(i!=0){
    xfa.host.resetData(myRowDelete.somExpression);
    myRowDelete.presence = "hidden";
    break;
    if(i==9){
    xfa.host.resetData(myRow.somExpression);
    myRow.presence = "hidden";
    break;
    Thanks
    JJ

  • Vertical text and Spotlight

    I'm not sure whether this topic is more InDesign, PDF or MacOSX related.
    See this document.
    Is it possible to make the number in the bottom left corner, searchable for Spotlight (MAC).
    The number is set vertically due to corporate guidelines.
    The file doesn't show up with a Spotlight search for that number.
    In Acrobat, the text is fully searchable. Even MAC's own Preview app can find the vertical text, which makes me wonder why Spotlight doesn't index it.
    Even google seems to index the vertical text.
    I don't want to add the number to the filename either, because we have strict file naming conventions to keep everything clear.
    Thanks in advance!

    Meanwhile I did some tests.
    It appears rotated text IS spotlight-searchable, BUT words are seperated in parts.
    For example: the text "ROTATED"
    At 30°, spotlight finds the file until i type the "E" character.
    30°: ROTAT - ED
    60°: ROTA - TED
    90°: RO - TA - TE - D
    It seems to split the words, and spotlight sees the parts as different words.
    While acrobat, mac preview etc. can search any combination characters, spotlight needs the first character of the word (it would never find "OME WOR" when "SOME WORDS" is in the file).
    I tried using tags, hyperlinks / bookmarks, script labels etc, many different PDF export options (PDF tags, invisble objects, PDF versions,…).
    I also played with some InDesign text controls that could cause the text splitting, like kerning/tracking settings, opentype features, hyphenation turned off...
    Also with mirroring (mirrored text is indexed by the way), vertical text in a non-rotated table.
    None of the above made the file spotlight-searchable.
    Opening the PDF in Illustrator shows the the text as 1 part, so I don't know why spotlight sees the words as seperate parts.
    John's invisible text-option looks like the solution to go with.
    Perhaps the "linked content" feature in can handle this, to make sure the visible and invisble text is always synced. (just switched from CS5.5, and didn't test that feature yet).

  • TEXT IN SCRIPT

    HAI,
           HOW CAN PRINT TEXT VERTICALLY IN SCRIPT ?
            IS IT ,
    PRINT-CONTROL ZM200
    ....TEXT
    PRINT-CONTROL ZM300
    IF IT IS PRINT-COMTROL IS COMMAND ( /: ) OR SOMETHING ELSE
    THANK YOU
    ASHOK KUMAR

    Hi
    Texts in Scripts are printed using the command INCLUDE
    /: INCLUDE TEXT<id> OBJECTNAME <name> OBJECT <VBBK> Lang <EN> Paragraph <AD>..
    <b>Reward points for useful Answers</b>
    Regards
    Anji

Maybe you are looking for

  • Video Converter PCI Card

    Do they make a PCI card for Macs that can convert analog video to DV? I would imagine it would have inputs for RCA (Red, White, Yellow) and maybe an S-Video imput as well. I have seen them but I dunno if any work for Macs. I don't know if I could imp

  • New hdtv card from msi

    I seen this ad on msi for digital@nywhere card. got the specs they looked good but i cant find where to buy it.if i type in card name it tells me no such product any one know of this card

  • Import from sql server to OWB

    I have a sql server source, and the target is oracle10.2. OWB 10.2. I can connect to connect to sql server from sql*plus and see the data. In OWB i imported the tables and created a simple mapping 1:1. It Validated and generated code successfully. Wh

  • ITunes 10.4 Update keeps crashing

    I allowed the update to 10.4 yesterday and iTunes now crashes everytime I open it. The crashes are intermittent and the first sign just before a crash the scroll bar freezes then Windows says that it needs to close iTunes. The event viewer displays t

  • Voreinstellungen bei 3D-PDF: "Modell-Rendermodus" und "Zusätzliche Beleuchtung aktivieren" nicht möglich?

    Hallo Zusammen, ich möchte die Voreinstellungen bei 3D-PDF: "Modell-Rendermodus" --> "Gefüllte Kontur" und "Zusätzliche Beleuchtung aktivieren" --> "Scheinwerfer" im Acrobat Reader setzen. Bisher leider ohne Erfolg. Nach dem Schließen des Dokuments g