Convert graphic image to the text block

Hello

I have a document with a few frameworks in them. I need to convert them into text frames.

I tried PageItem.contentType = ContentType.TEXT_TYPE and then he changes the content type of the page element has not yet insertionPoints.

If I close the document directly after changing the type of content, then re opened, the insertionPoints are accessible.

What else do I need to do during the conversion of the frame type?

Thank you very much

Richard

The problem is caused by the peculiarities of the loose typing of InDesign.

You need to re-evaluate the type as follows:

myPageItem.contentType = ContentType.TEXT_TYPE;
myPageItem = myPageItem.getElements()[0];

Tags: InDesign

Similar Questions

  • position of the image/text in the text block

    Hello

    I use textframe to place images and text.

    WHN I put the text / images, by default, the images are aligned at the top of the text block, I need to put it at the bottom of the textframe.

    is there a possible adjustment of the document actuive / app so that by default the content should be aligned to the bottom

    Thank you.

    Search in the object that defines the vertical positioning: textFramePreferencesand you will see there at the time of the Document and the Application as possible parents.

    app.activeDocument.textFramePreferences.verticalJustification = VerticalJustification.BOTTOM_ALIGN;
    

    define the default for new text frames downwards. You can also use

    app.textFramePreferences.verticalJustification = VerticalJustification.BOTTOM_ALIGN;
    

    to set it as a global preference for all your new documents, but anyway this sounds like a bad idea.

  • Text on the stroke to the text block

    I was wondering if there is no way to force the text in a text block to be at the top of the race that I added to the text box. The descenders are cut and I have messed around with various options of baseline for the text block, but can't seem to find a way to make it work without making the largest text block which I prefer not to do.

    I saw a few solutions, but they all seem to be for earlier versions by using the settings that I can't find in the CC options.

    Any help would be appreciated! Thank you

    --

    Kristin

    Use a text image inset.

  • How to place images in the text frame?

    Hi Experts

    I am just placing the image in text frame.

    If the text block is on the pasteboard image is then held successfully.

    If text from outside the pasteboartd block or exists outside the editing table and image not place in textframe while the text is inserted in the textframe.

    My coordinated picture text is:

    x = pt-81, 740

    y = pt - 138, 2750

    w = pt 760,123

    h = pt 1117,944

    It start from outside the editing table.

    indesign #target

    var myDocument = app.activeDocument;

    Try

    {

    var myTextFrame = myDocument.spreads.item (0).textFrames.item (0);

    myTextFrame.contents = "InDesign";

    myTextFrame.place(File("/C/temp/1.jpg"));

    }

    catch (e)

    {

    var k = 0;

    }

    I'm not understand that text is insert in textframe but image isn't the place.

    When I change the text block x = pt 10 and y = 10 points then this good script work.

    How place image in textframe which is outside the editing table?

    Thank you.

    Hello

    The bad news is that you cannot place a new object outside the editing table.

    The good news is that you can move...

    so:

    var myTextFrame=mDoc.spreads.item(0).textFrames.item(0),
    mPlace = [ myTextFrame.geometricBounds[1], myTextFrame.geometricBounds[0] ];
    
    myTextFrame.move([0,0]);
    myTextFrame.place(File("/C/temp/1.jpg"));
    myTextFrame.move(mPlace);
    

    Jarek

  • Type of entry in the text block

    Hello

    Is it possible to define a text frame on a master page and be able to enter text in the image in the document itself, without separate the text block and his master?

    This is for CS4.

    Thank you.

    It depends on the nature of your question. You must override the image on the document page (Shift click command) to add content, but anything that does not change on the page of the document is still linked to the main frame (such as size, position, fill, stroke, etc.). Is that what you mean?

  • Is there an easy way to convert graphics (imported from the common library) Composite path?

    Hi all

    This is my problem:

    I had sex with any common library grapch, and I would like to convert to a Composite path. I had been using a manual method (double click on the image and copy the compound path, and then stick it on my main layer).

    question:

    Is there an easy way to convert graphics (imported from the common library) Composite path? as a shortcut, or other?

    Image:

    forum_01.png

    Thank you before and waiting for your responses

    With the object selected, choose Modify > symbol > Break Apart. Then click Modify > ungroup.

  • Text wrapping will not be in the text block

    I am changing the content on a block of text in Illustrator using a JavaScript file.

    My method is as follows:

    changeLayer = doc.layers.getByName(textKeys[t]);

    changeLayer.textFrames.getByName(textKeys[t]).wrapInside = true;

    changeLayer.textFrames.getByName(textKeys[t]).contents = textArray [textKeys [t]];

    Basically, I set wrapInside to true and then I replace the content of the block of text with a string.

    However, rather than the text as you wish, Illustrator print everything on one line expands the size of the text block (and sleep) to adapt the text on a single line. Even when I put explicitly the width and height of the image in the script, it shrinks the text to fit on a single line in the rather enveloping framework. If I explicitly set the size of the police he then extends the framework once again, but only on a single line. Any ideas? Thanks in advance.

    Good evening

    Don't forget that you have different types of linked text frames. In vba, you can find the property THAT allow you to show that read only 3 types of text frames aiAtraText, aiPathText and aiPointText

    Patrice

  • PC webcam - mirror image of the text shows on PC monitor

    I want to display the webcam image of a page of a book to my PC monitor. However, the image that is displayed is a mirror image of the text (left and right are reversed). Display the image exactly as it appears on the page of the book?   Thanks - Rick

    Hello Rick,

    Thanks for the update and my apologies for the late reply.

    According to your request, I recommend you check with the help of Toshiba which would be more on the specs/features of the web - cam as a manufacturer.

    Toshiba Support Forums

  • can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    ReemaPuri wrote:

    in the workspace image:-resign.jpeg

    As a button? Seriously?

    Ok. First of all, because the image already contains text, there no point in including the same wording in the form of text on the button. Accessibility requirements can be met using re-sign as alternative text. 4.2, create an image button:

    Tag/Alt text: Re-sign

    Static ID: re - sign

    Style button: Image

    Button Image: & WORKSPACE_IMAGES.resign.jpeg

    To make the image looks more like a button, add the following CSS to Inline CSS property page:

    #re-sign img {
      margin: 0 2px 2px 0;
      border: 2px outset;
      border-radius: 4px;
    }
    #re-sign img:active {
      margin: 2px 0 0 2px;
      border: 2px inset;
      border-radius: 4px;
    }
    

    Finally, there is a bug in 4.2 that generates the incorrect URL for the button images, which requires dynamic action of Page Load to fix.

    Event: Loading the page

    Action: Run the JavaScript Code

    Code

    var resignImg = $("#re-sign img");
    resignImg.attr("src", resignImg.attr("src").replace("/i/", ""));
    
  • Rotate the text with the character within the text block style

    I would like to apply a paragraph or character style to a certain character in a text frame. I would need to rotate 90 degrees in the framework, separate from the other text. Is this possible?

    Insert the text block in the block of text as an anchor and rotation you need.

  • How to put a new line in the text block using jsx?

    Hello guys,.

    I am concatenating the content of the text block using two JSX, but I want separator as a new line. I have tried \n but does not work please help how to do that.

    var  seperator = "\n" 
    frame1.textItem.contents + seperator + text;
    

    Hi UpendraSengarr,

    Try this:

    var frame1 = app.activeDocument.activeLayer;
    var  seperator = "\r";
    frame1.textItem.contents = frame1.textItem.contents + seperator + "text";
    

    Have fun

  • Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem

    Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem is it gets rid of color and shows that the peak through the text.  I wanted a draft of the text with the picture.  Is this possible?

    Thank you

    Peter

    You're welcome, Peter.

  • Spacing between the image and the text

    Hello!

    I can't find how to increase the gap between the image and the text. Here is the picture that will explain what I mean:

    2016.01.03_18h12m23s_004.jpg

    Thanks for the reply and your help.

    Kind regards

    Hrvoje

    Open the text wrapping Panel (window > text wrapping) and you will see the distance adjustment controls.

  • Problem with the text block, put in place when it is used on the page number marker

    Hello!

    I would use the text block on the marker page number on the master page in Indesign. The text block should change width when increases the page number. It does not work. What happens is that when the number of page moves a two-digit figure, the numbers tightened itself (compressed on top of each other) and the block of text changes size unless I drag on it (which means I have to manually unlock the master page first).

    I'm doing something wrong, or is this a bug?

    Thank you!

    Altogether! So, you can use a rule of Pará to simply do it!

  • How to get the text block, given anchor (~ a)

    I need to dynamically position anchored with anchor text blocks (but the relative position will be different for each anchor). If I grep ~ i can get the anchor marker - how to get the text block once I got this marker?

    Thank you

    The marker "anchor" is a character of "simple".

    So you can do the following if you have identified the character (and in this example selected it):

    //Start with an "Anchor Marker" selected:
    var myCharacter = app.selection[0];
    
    if (myCharacter.texts[0].textFrames.length == 1){
    
    var myAnchoredTextFrame = myCharacter.texts[0].textFrames[0];
        //do something with the anchored text frame:
        myAnchoredTextFrame.fillColor = "Yellow";
    
        };
    

    You can set the myCharacter variable differently, if you know the index of the character according to his history of parent.

    Or if you have found the character as part of a search GREP or TEXT by ExtendScript (JavaScript).

    Uwe

Maybe you are looking for