Inline Object Basealign

Hi scripters
I am doing find and replace here, it works well.
var myPath=prompt ('Enter your equation file path')
app.findPreferences = NothingEnum.nothing;
app.changePreferences = NothingEnum.nothing;
app.findPreferences.appliedCharacterStyle = "EqnCallout";
var myResults = app.activeDocument.search();
for (i = myResults.length-1; i >= 0; i--)
var myimgname= myResults[i].contents.split('\r')[0];
myPicFile = File(myPath + "/" + myimgname);
if (myPicFile.exists)
myResults[i].place(myPicFile);
Now my problem is when I am placing inline images it's not fitting in the correct baseline alignment. Images are overlaping with above and below lines. (I am fixing manually)
How I can set inline images(object) set in the baseline?
thanks in advance
regards
a r u l

You need to assign auto-leading to the images, which can be done by your script as you place them. I usually use a character style for this kind of thing. Given that you have a reference to the text you're replacing, it could be as simple as adding:
myResults[i].characters[0].appliedCharacterStyle = "myAutoStyle";
immediately after the place command.
Assuming of course, that you have a character style set up with the right name.
Dave

Similar Messages

  • Is the ability to center an inline object with a baseline shift gone in Pages 5.0?

    In the previous versions of pages I was able to center an inline object such as an imported equation with a baseline shift. I cannot find this in pages 5.0.
    It is gone?

    select line > Format > Style > Stroke > click on the color wheel next to the swatch > select a color
    Peter

  • What does Inline object "Y offset" mean exactly?

    Hi everyone,
    I am confused about inline object y offset. What does it mean exactly? I looked it up on adobe help, here is what it says there.
    Inline
    Aligns the anchored object with the baseline of the insertion point. You can adjust the Y Offset to position the object above or below the baseline. This is the default type of anchored object. In earlier versions of InDesign, these objects were called inline graphics.
    So.. is the baseline at the insertion point?  If the y offset is a negative number, does that mean the baseline move up? How come the object doesn't move ? like the adobe help say, "adjust the y offset to position the object above or below the baseline", doesn't it mean the baseline should stay and object moves accordingly? 
    Thanks a lot!

    The behavior of inlines is also tied to the leadingof the line in which they are located. When the line has autoleading specified, the inline starts withthe bottom edge on the baseline, and the leading for the entire line is adjusted to the height of the inline object. Changing the y offset in such cases would appear to make the inline object appear stationary while shifting the baseline up or down.Waht is happening is the "auto" amount of leading is being adjusted to compensate for the shift.
    If the line in which the object is inserted uses a fixed leading, that leading is honored, and the inline object may cover part of the text above. Changing the offset will make the boject appear to move up or down realtive to the baseline, which will remain fixed by the assigned leading.
    You might also find this discussion from the other day to be useful: http://forums.adobe.com/message/2722774#2722774

  • Inline objects in page layout mode

    Before I drive myself any more insane than I already am can someone please confirm, or otherwise, that it isn't possible to use inline objects in page layout mode or, indeed, inside text boxes in word processing mode? Assuming this is the case can anyone suggest a work around?

    Please don't become insane, there already too many such human beeings
    Here is the way I work (mainly because I don't store my photos in iPhoto).
    drag and drop the picture file onto the doc's page.
    select the picture frame with its square handles
    Cut it so it will no longer appear but is stored in the clipboard.
    Put the cursor where you want to insert the picture then paste.
    Yvan KOENIG (from FRANCE dimanche 29 juin 2008 15:44:25)

  • Select the Inline object by its script label

    Hi Friends,
    How to selct an Inline object by its label?
    My Code
    myDoc.pages[0].allPageItems.item("AAA").select();
    But it shows the following error
    myDoc.pages[0].allPageItems.item is not a function.
    Regards,
    JesRoberts.

    Hi Friend
    Can you tell me what was wrong with my answer to your previous post that you didn't show any acknowledgement of it.
    Did I not answer it?
    Maybe before starting new post you should finish of the "finished" ones

  • Precise placement of inline objects

    Hi there!
    I need some help with placement of inline objects. When I work with floating objects, everything works fine. I can insert image and mark certain part of image with circe (from Shapes menu) or pull the arrow from the specific part of tex to the image. See picture below.
    But off course, floating objects dont move with text.
    If I change objects in Inline objects I cannot put them where I want. See vertical arrow on the picture below. I added also Wrap Inspector, so you can see my settings. Altough I tried all possible settings with Wraping and No wraping. Please help!

    Red vertical arrow is part of the group. I mentioned it just because I want it to be under the word "page" in the text above (like in first image in my first post). But You help me discover limited placement options. Thanks again!
    There is another thing. When I set my group of objects as inline object and go to Arrange, Align Objects I cannot set alignement (options are grey) - see image below. I'm starting to believe that I wanted to do something impossible.

  • 'Wrap' formatting of inline objects?

    When I place an object (an image) within a body of text, and wrap is selected, the text flows around the object in the manner that has been selected as long as the object is 'floating.' However, as soon as the object has been made 'inlline,' the text no longer flows around it, but instead is pushed above and below the object and the wrap options are greyed out.
    What is the secret to maintaining the 'wrap' options for an inline object, if any?

    Alistair - I'm confused... First, Apple's Pages works like Bob described... an image can be inserted "inline" and you can select "object causes wrap" - and as the text moves, the image moves with the text. I expect iBooks Author to work the same way!
    As soon as I select 'inline' iBooks Author deselects the "object causes wrap" and you can't pick the wrapping options.
    I've tried selecting "anchored" does allow you to do the wrapping options, but if you edit the text around the object (like maybe adding a bunch of text above the image), then the image doesn't move and you've got to move the image again.
    I think what I'm learning is that iBooks Author is not a text editing tool - they expect you to have your text locked down when you come into iBA and then fooling with images would be easier.

  • Inline object in portrait-layout text disappears when switched to anchored?

    I'm trying to add a simple drop-cap to a text-only book that I'm putting together in iBooks Author.  In Landscape orientation, it works fine; I add a text box, position it at the beginning of the chapter text, set it to Anchored placement, and turn on Object causes wrap.
    In portrait orientation, however, "anchor" isn't working.  Specifically, if I create an object, copy-paste it into the pageless body text (so it's inline), and then switch it to Anchored placement (via either the Inspector or the toolbar), the object vanishes.  Completely--it's gone from the document entirely so far as I can tell.  I tried it with a text box and various shapes, and also tried creating a new document with a different template--the behavior was the same in every case.  The object just disappears.
    Now, that just can't be the intended behavior, but is this a reproduceable bug for other people?  And/or is there a workaround so I can get a drop-cap in portrait view?

    Hi Eric,
    I believe the problem is because the leading on the image paragraph is now set to 14pt, whereas previously it was probably set to auto. Auto leading is the only way to get images to push the text down like you want. Note also that for some reason, ID has a preference "Apply leading to whole paragraphs" turned off by default. Unless you select the whole paragraph, auto-leading will not work the way you want it to until you have this preference switched on.
    Regards,
    Malcolm

  • Inline Objects Causing Grief

    I am writing a diary in the Word Processing layout of Pages, which is 95% text, but I want to be able to add photographs and other objects to illustrate it. I am having great difficulty making objects stay inline. I position them exactly where I want them (floating) and then click inline and they jump all over the place, and often a long way down the page. I often want to put two photographs together, side by side, as well, and this seems almost impossible. I managed it once or twice some time ago but can't for the life of me remember how I did it, or repeat it! I have tried using a Page Layout document instead, but when I click on the photographs the inline/floating option is grayed and I cannot select it. I have read the Pages User's Guide but cannot find the answer to my question. Can anyone help, please? This doesn't seem as intuitive as most things Mac usually are. Thank you.

    In this first example, I inserted the two pictures, defined them as inline with no wrap and I checked that there was not an extraneous space character between them.
    Here, I grouped the two objects then defined them as inline and defined the wrap mode.
    The same objects are grouped differently then I applied the same kind of wrap.
    Yvan KOENIG (from FRANCE mercredi 10 décembre 2008 21:20:07)

  • Inline Objects Not Visible

    This is my first time in this discussin. I usually work with Final Cut and DVD Studio Pro.
    I have a document with floating TIFF pictures. When I change them to inline, they dissapear. they are there, but I cannot see the picture. It looks like nothing is there. If I select the picture, the outline is visible, but I cannot see what picture it is.
    There must be a setting somewhere to change that, but I cannot find it.
    Thanks for you help!
    Mike

    I might be experiencing the same problem. If you push the scroll bar right to the top do the objects reappear. I've noticed that if I scroll then all floating objects don't display ? anyone else ?
    This is on a 20" iMac, it works fine on my macbook pro ?
    Message was edited by: mcornes

  • Find inline objects and apply object styles...

    Hi Eveyone,
    I am trying to find placed inline rules and apply object styles through javascript. Because we need some baseline shift to those rules. I getting some error while find the rules. FInd the syntax below,
    app.findObjectPreferences=app.changeObjectPreferences=null;
    app.findChangeObjectOptions.properties =
      objectType: ObjectTypes.unassignedFramesType
    app.findObjectPreferences.strokeWeight=1;
    app.changeObjectPreferences.appliedObjectStyles=app.activeDocument.objectStyles.item("WOL" );
    app.activeDocument.item(0).changeObject();
    Can anyone look into this help for me. Thanks in advance.
    Regards
    Thiyagu

    Hi Dave,
    I have tried the script after removing "s" in it. Now i am getting error like "object doesn't support the property or method 'appliedObjectStyle'". Please look into this and help me out. Herewith i attached the 'error' dialog snapshot.
    When i tried this in loop its working fine. Find the script below.
    app.findObjectPreferences=app.changeObjectPreferences=null;
    app.findChangeObjectOptions.properties =
      objectType: ObjectTypes.unassignedFramesType
    app.findObjectPreferences.strokeWeight=1;
    myFindObj=app.findObject(true);
    for(i=0;i<myFindObj.length;i++){
        myFindObj[i].appliedObjectStyle=app.activeDocument.objectStyles.item("WOL");
    alert ("DONE!");
    Regards
    Thiyagu

  • Importing multiple images as inline objects

    I know Indesign allows for multiple images to be placed in a grid, but is there a way to import several images straight into a story as inline frames?

    After digging around in the scripting section of this forum, I managed to find a snippet of a script which replaces image names in the text with the actual image. Very useful stuff.  
    // reset the Find/Change dialog app.findGrepPreferences = app.changeGrepPreferences = null; // formulate a grep search string app.findGrepPreferences.findWhat = '@.+?@'; // find all occurrence of image names between @, last one first f = app.activeDocument.findGrep (true); for (i = 0; i < f.length; i++) { // construct file name name = f[i].contents.replace (/@/g, ''); // place the pdf and REPLACE the destination with the folder of links f[i].insertionPoints[0].place ('Insert image folder here' + name)); } // delete all @??@ codes app.activeDocument.changeGrep()

  • Setting the filename of inline objects

    I am working on a website where we dynamically build up pdf files and display them in the browser (inline) to the user. However, when you click on Save As on the pdf file's menu, the filename is set to the url to that page. Is there anyway to specify a different name? (without saving a temporary file on the server everytime a user wants to do this)
    Below is the code that builds up the content:
    byte[] content = objXSLT.transform_pdf(strXHTML, map);
    response.setContentType("application/pdf");
    response.addHeader("Content-Disposition", "inline; filename=\"test1234.pdf\"");
    response.setContentLength(content.length);
    OutputStream outStream = response.getOutputStream();
    outStream.write(content);I've also attempted to send the file as an attachment instead of inline. When I do this the user can only save the file. If they attempt to open it then Adobe Reader complains and says that it couldn't find the file. I'm assuming this is because the file doesn't actually exist on the server. Is there any way around this (minus the temp file again)?

    Hi,
    In the past I have used the following code which gets a file (any type) from the database, and allows the user to download it. I was able to open any type of file with the OS's default helper app (i.e. MS Word or Adobe Acrobat). In my case, the file only exists in the database and NOT as a file on the server. So maybe this is similiar to your situation:
      protected void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
        ServletOutputStream out = response.getOutputStream();
        // GET PARAMETERS FROM REQUEST
        String id = request.getParameter("id");
        String type = request.getParameter("type");
        String contentType = request.getParameter("ct");
        String docName = request.getParameter("docName");
        byte[] downloadData = getBlob(id, docName, type);
        //response.setContentType(contentType);
        response.setContentType("*/*");
        response.setHeader("Content-disposition",
                      "attachment; filename=" +
                      currentDownloadFilename );
        out.write( downloadData );
        out.flush();
        out.close();
      }I'm not sure that this helps you much though, since it is practically what you have already.

  • Making an inline object floating changes an entire document - help!

    I am working on a directory set up in pages.  I am trying to get rid of one picture that was set up as an inline picture rather than floating.  If I delete it, it deletes 20 subsequent pages in my document.  How can I just delete that picture?  Even if I change it to floating, it deletes all subsequent pages - help!!

    Insert a Section Break at the end of the page on which you have the inline pricture.
    Without going into a long explanation, it is the way you have laid out your document that is causing the problem. The section break will hold all your remaining pages where they are.
    Probably you have pushed a lot of material into place with spaces, tabs and returns. These are interacting with the text wrap on the foating image to pop everything else out of position. A tidy layout using proper formatting survives minor changes to layouts and can be easier correct where needed.
    Peter

  • Is it possible to move the anchor point for an inline object?

    I have noticed that sometimes the anchor point will get inserted in the middle of a word resulting in the spellchecker marking the word as misspelled.
    I can't seem to find any information in the documentation about moving an anchor point. Is it not possible?
    Thanks

    Krisler,
    Select your Inline graphic. Then click on the center of the graphic and drag the mouse's pointer into the text. When you get your pointer into the text you will see the insertion cursor (vertical bar) just at the tip of the mouse arrow. When you let go of the mouse button the insertion point for the graphic will be where the insertion bar was at that time. The key point is to concentrate on the position of your arrow tip as you attempt to reposition the insertion point.
    Jerry

Maybe you are looking for

  • Everything on my phone is gone now...

    This morning i bought a $25 gift card, i used my iphone to redeem it like i usually do. It said the money had been added and i had a total of $30. So i went to download an app, when it told me my payment method was declined because i didnt have enoug

  • Problems w/ver 27 and xp sp3; should I give up on xp and go to Win 7 PRO 64bit where I find no problems?

    OS = Win XP SP3 Cannot change/edit location of downloads; the only download available is DOWNLOADS This ver of MF takes about 15 seconds to load NASCAR website After I select any website to load a small, rotating circle appears in the upper-left of t

  • Import video via firewire not allowed by Face Time

    I am trying to import video to my harddrive via firewire. Every time I open iMovie and click on the video camera icon the only device seen is the Face Time camera. There's a little drop down window but it only has Face Time as the option not my Sony

  • Two questions - SSRS

    Hello - I am having trouble with the following: 1.  I am trying to set header rows on each page.  I have tried Repeat Header Rows On each Page in Tablix Properties.  It does nothing. 2.  In Print Preview, every other page is blank. Any suggestions wi

  • I Have two monitors but cannot get the right configuration

    My main monitor (apple cinema display) is located in front of me and have a monitor to the left (a Samsung). The problem is getting to Samsung to behave as it is located to the left of the main display when I move the cursor. I have to go through the