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

Tags: InDesign

Similar Questions

  • How to insert images from the external file in the block of text using AppleScript

    the value myFile to null

    say application 'Finder '.

    the value ArtFolder to choose a folder with guest "Select the folder of Art: - > >".

    the value Chap1 to (get 1 folder from the folder ArtFolder)

    the value myFile to (Download file 1 to file (chap1 as alias))

    end say

    say application "Adobe InDesign CS5.5.

    set myDoc for the active document

    say myDoc

    set figureNode to XML element 1 of XML element 2 of XML element 1 of myDoc

    the value myFrame to do text block with properties {the geometric limits: {-13, 13, 3, -3}}

    tell text frame myFrame place (file (myFile))

    markup myFrame with figureNode

      end say

    end say


    ==========================================

    Condition: I want to Insert a picture of external & case content currently in the text frame... document node

    I am using above code but belowe the line does not...

    : - tell text frame myFrame place (file (myFile))

    Can someone help me please...

    Thank you

    Problem solved by code below :===>>

    say application "Adobe InDesign CS5.5.

    set myDoc to the active document

    myDoc say

    set figureNode to 1 to 2 to 1 of myDoc XML element XML element XML element

    set ArtFrame on to do text block with properties {geometric limits: {-13, 13, 3, -3}}-{y, w, h, x}

    Select ArtFrame

    Place (myArtFile as alias) on ArtFrame

    say fit myFrame given frame to content

    end say

    end say

  • How mode change and get the coordinates of the text frame?

    Hello.

    There are two questions.

    1. how to change fashion using JavaScript?  writing-> selection

    ->

    2. how to get the text frame coordinates?

    Thank you.

    1 app.toolBoxTools.currentTool = UITools.SELECTION_TOOL;

    2. f.geometricBounds (where f is your block of text).

  • How can I make room between the Images and the text?

    I'm inserting images, but the text is right up against the images (which I placed it on the left side of the page).  I would like to create a little space in there.

    Thanks in advance for your help.

    You are welcome Dave.

    You can name your classes you want. Since you have not validated no CSS code.

    I don't know what is specified in your 'fltlft' rule versis what I specified in my class.

    A screen CSS has a small button (probably on the bottom) to create a new rule

  • Pinned object goes behind the images and the text when scrolling

    Hey guys,.

    Im having a problem with my pinned Center the menu at the top of my page. Whenever I scroll to the top, the menu goes behind the images and the texts that are underneath. I tried to fixed by sending the menu at the top layer (arrange > send up), but nothing helped.

    How I fixed it?

    Thank you!

    Hello

    You have the Menu added to the master page? If yes then in order to resolve this problem you must add the Menu separately to all pages.

    Master page items may be brought forward on the pages. You can use cut and paste in place function paste the Menu on all pages separately.

    I hope this helps.

    Kind regards

    Sachin

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

  • How to insert images in the content pane HTMLEditor?

    How to insert images in the content pane HTMLEditor? or a hyperlink?

    > know the position of the caret

    Well, there is no public API on the HtmlEditor to know that.

    You could create an tweak asks to add such an api.

    In the meantime, I believe that the HtmlEditor is implemented as a contentEditable has WebView below, so I think it's possible to hack together a solution if you want to.

    To do this:

    1. create a program that uses the HtmlEditor.

    2. run the program and use ScenicView to work on the css to display embedded Web search path.

    3. Once your HtmlEditor appears on a scene, use a node search to dig up a reference to the Web view.

    4. Once you have a reference to the Web mode, use executeScript to get the position of the caret by using JavaScript.

    5. Once you know where the caret, use a mechanism similar to my example program above to allow you to insert an image to the location of the caret (get the html text, put the position appropriate, up-to-date then set it again).

    Of course, you don't need to use a HtmlEditor control to do this, you can also just use a plain WebView with contentEditable flag put on it or any number of 3rd party JavaScript html editors have image insert functions.

  • Is it possible to place images in the legends of the Muse slideshow?

    I would like to subtitle some headshots - in a slide show - with a bit of blurb written, more images of logo for businesses, so that they worked.

    Thank you!

    You should be able to add images to subtitle a slide show, just like you would wrap text around a picture in a block of text, as described here - http://www.adobekb.com/typography_pt3.html.

    Because soon, you place an image in the caption, you will notice that it would be placed as an Inline element and the Panel layout would be activated in order to move the image around the text.

    Thank you

    Vinayak

  • Hover over the images and the text

    Hello

    Cannot find this answer on the forum.

    How can I show a picture and some text using the roll on.  I have a small that by clicking on the image or hover over shows but a larger image with the text.

    Thank you

    Hello

    Assuming you are using Captivate 3 or 4 Captivate, you have an object known as a 'slidelet"can be used for this. When you insert the slidelet, you get two areas. One is the area that you hover over. The other is what appears when you hover over the other domain. In the box that appears you can insert images, captions and other elements.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • How to disable him drag the text selected for searching the Web?

    How to disable him drag the text selected for searching the Web?

    Hmm, I did not forward. This is a new tab page with nothing to do with what you were dragging?

    I wonder if this might be a feature of one of your extensions. You can see their and disable/remove those that are not essential or unrecognized, here:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    If you disable the extensions, usually a link will appear above at least one of them to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    If there is no difference, you could test mode without failure of Firefox - which is a standard diagnostic tool in order to avoid interference by extensions (and some custom settings). More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe help

    Help > restart with disabled modules

    In the dialog box, click on 'Start mode safe' (not Reset)

    Any difference?

  • 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/", ""));
    
  • How to store images in the oracle database and get back on a jsff page in ADF?

    Mr President.

    How to store images in the oracle database and get back on a jsff page in ADF?

    I have students and employees in my database and want to store their pictures against their ID.

    How to do this?

    Concerning

    Tender,

    You can check the links that explain this below.

    https://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/

    Johny tips: ADF: display image files from database as a popup in Application Web ADF

    See you soon

    AJ

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

  • Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi Eli Marto,

    I'm sorry, but it is not possible to extract text from a PDF file using the player.

    It can be done using Adobe Acrobat.

    Ref: export the comments AND highlighted text?

    Kind regards

    Ana Maria

Maybe you are looking for

  • Does not download E-mail

    At the bottom of the screen it says there download my messages but I do not get everything. Tried the fixes in the help section - nothing has worked. Short of uninstalling, is then reinstalling there anything else I can try?

  • Preview has no output gif

    I've got yosemite with 8.0 (859.21), he should have an export option in "GIF" according to Oxsdaily there should be an option to export http://osxdaily.com/2010/01/24/convert-images-in-mac-os-x-jpg-to-gif-psd-to-jpg - gif-to-jpg-bmp-to-jpg-png-to-pdf

  • How to transfer photos from my pc to iphone 6plus

    Help How do I transfer photos from my PC to my IPhone 6plus?

  • "Module Manager" will automatically launch at startup upward

    Everytime I open FireFox I get a tab for 'Add-ons Manager' in addition to a tab of my homepage. How can I remove the accidental launch of 'add-on Manager "? It's the kind of a nuisance. Thank you Joe

  • Tecra M1: OpenGL option need to play call of Duty

    Hello!Does anyone know if there is a driver for the Trident CyberXP4 video card that supports OpenGL?The game Call of duty does not start.I have already installed the lates driver, I got the Toshiba site. Trident driver download page is inaccessible