Adjust height of Inline graphic against the baseline

In CS2 I was adjusting the height of inline graphics on the baseline by calling:<br /><br />     InterfacePtr<IGeometry> geom(UIDRef(db, inlineUID), UseDefaultIID());<br />     if (geom->SetPathBoundingBox(newBBox, IGeometry::kResizeItemAndChildren) != kSuccess)<br /><br />This no longer works in CS3.<br /><br />I've also tried using:<br /><br />Utils<Facade::IGeometryFacade>()->SetItemsBounds(uids, Transform::CoordinateSpace::Parent(), Geometry::PathBounds(), rects);<br /><br />but that doesn't work either.<br /><br />Anyone know how to do this?<br /><br />Walter

Can any one tell how to replace
CS2 code
PageItemUtils::SetItemBounds( iiItemGeometry, newBox, kTrue);
for CS3 version during porting....

Similar Messages

  • Post inline graphics into the text. How?

    Hello my friends!
    1. I want to know how can I post graphics into text like in this manual http://www.adobe.com/designcenter/indesign/articles/indcs2at_anchoredob.html
    What commands I should to use? Could you give me an example of code?
    2. Also, how can I make the text wrapped around the posted graphics?
    I use CS3.
    Thank you!

    From the Javascript CS3 examples "Text" -> "AnchoredFrame.jsx":
    //AnchoredFrame.jsx
    //An InDesign CS3 JavaScript
    //Shows how to create an anchored frame.
    main();
    function main(){
        mySetup();
        mySnippet();
    //Setup Help Text
    //Setup help text goes here.
    //end setup help text
    function mySetup(){
        var myDocument = app.documents.add();
        myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
        myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
        var myPage = myDocument.pages.item(0);
        var myTextFrame = myPage.textFrames.add({geometricBounds:myGetBounds(myDocument, myPage), contents:TextFrameContents.placeholderText});
        myTextFrame.texts.item(0).leftIndent = 72;
        function myGetBounds(myDocument, myPage){
        var myPageWidth = myDocument.documentPreferences.pageWidth;
        var myPageHeight = myDocument.documentPreferences.pageHeight
        if(myPage.side == PageSideOptions.leftHand){
            var myX2 = myPage.marginPreferences.left;
            var myX1 = myPage.marginPreferences.right;
        else{
            var myX1 = myPage.marginPreferences.left;
            var myX2 = myPage.marginPreferences.right;
        var myY1 = myPage.marginPreferences.top;
        var myX2 = myPageWidth - myX2;
        var myY2 = myPageHeight - myPage.marginPreferences.bottom;
        return [myY1, myX1, myY2, myX2];
    } //end setup
    //Snippet Help Text
    //Snippet help text goes here.
    //end snippet help text
    function mySnippet(){
        var myDocument = app.documents.item(0);
        var myPage = myDocument.pages.item(0);
        var myTextFrame = myPage.textFrames.item(0);
        var myInlineFrame = myTextFrame.paragraphs.item(0).insertionPoints.item(0).textFrames.add();
        //Recompose the text to make sure that getting the
        //geometric bounds of the inline graphic will work.
        myTextFrame.texts.item(0).recompose;
        //Get the geometric bounds of the inline frame.
        var myBounds = myInlineFrame.geometricBounds;
        //Set the width and height of the inline frame. In this example, we'll
        //make the frame 24 points tall by 72 points wide.
        myInlineFrame.geometricBounds = [myBounds[0], myBounds[1], myBounds[0]+24, myBounds[1]+72];
        myInlineFrame.contents = "This is an inline frame.";
        var myAnchoredFrame = myTextFrame.paragraphs.item(1).insertionPoints.item(0).textFrames.add();
        //Recompose the text to make sure that getting the
        //geometric bounds of the inline graphic will work.
        myTextFrame.texts.item(0).recompose;
        //Get the geometric bounds of the inline frame.
        var myBounds = myAnchoredFrame.geometricBounds;
        //Set the width and height of the inline frame. In this example, we'll
        //make the frame 24 points tall by 72 points wide.
        myAnchoredFrame.geometricBounds = [myBounds[0], myBounds[1], myBounds[0]+24, myBounds[1]+72];
        myAnchoredFrame.contents = "This is an anchored frame.";
        with(myAnchoredFrame.anchoredObjectSettings){
            anchoredPosition = AnchorPosition.anchored;
            anchorPoint = AnchorPoint.topLeftAnchor;
            horizontalReferencePoint = AnchoredRelativeTo.anchorLocation;
            horizontalAlignment = HorizontalAlignment.leftAlign;
            anchorXoffset = 72;
            verticalReferencePoint = VerticallyRelativeTo.lineBaseline;
            anchorYoffset = 24;
            anchorSpaceAbove = 24;
    } //end snippet

  • Placing MS Word inline images onto the Baseline Grid

    Products:
    InDesign CC
    MS Word 2013
    Hi everyone.
    I'm placing a MS Word docx (default style formatting, images pasted inline with the text, each on a separate line) into an InDesign document with a baseline grid.
    The document places without any difficulty, except that the images are piled on top of each other. I can see tht the image is being placed on its own line on the baseline grid, so technically it's being positioned properly, but I need the text to Jump Object or  Wrap Around Bounding Box. When I change any image from No Text Wrap to one of the aforementioned, nothing happens. The bottom portion of the image remains inserted and aligned to the baseline grid.
    How do I get the text to Jump Object or Wrap Around Bounding Box when using the baseline grid?
    Thanks

    Ah, I seem to have found a solution to the problem. Not sure if it is the best or most efficient, but it seems to work:
    1. Create new paragraph style.
    2. Set Basic Character Format Leading to Auto.
    Then, rather than select the image as I was doing, position the cursor in the respective line hosting the inline image, and apply the new paragraph style.
    That caused the text to have the Jump Object appearance.

  • I need to edit an inline graphic

    I have some small graphic ICONs that are placed next to (Left of) some paragraphs of text.  Since these ICONs need to move up and down with the text I was moving them manually whenever I edited a paragraph.  Then someone showed me how I could select them.  Cut them to the pasteboard.  Then paste them as the first character in the paragraph and edit the attributes such that they appeared to the left of the paragraph but then whenever I edited the text, these icons would move up and down with it.
    O.K.  So now I have a paragraph that has two ICONS next to it.  The customer has requested that I swap their positions.  I only have ONE inline graphic ICON showing in the story editor because when I placed these I cut them both to the pasteboard and then pasted them as an inline graphic into the story.
    My question is:  Do I have to delete the inline graphic.  Go and get both ICONs again from my library of artwork and put them on the art in the transposed order and then cut them again to the pasteboard and re-paste into my story?  If so then I am not a happy camper.  Is there a way to UNDO the conversion to an inline graphic and somehow get them back to the pasteboard where I can paste them as normal ICONs on the artwork.  Then make my changes and then re-cut them to the pasteboard and paste back into my text story?
    Anybody have any light they can shed on this?
    I'll probably do the first scenario for the jobs at hand but it seems a long way around.  Interested if there is a better way.  Thanks!
    Randy

    It sounds like you had the icons grouped when you pasted them into the story so they are a single anchored object. Use the selection tool (black arrow) and click on the icons. Cut. Paste. Ungroup. Now copy and paste each icon as a separate object into your story.

  • How can I make numbers align with the baseline in ordered lists with inline images?

    When I use inline images in an ordered list, the number for every line that has an inline image is offset from the baseline to align with the top of the image. Here is a screen shot from Preview mode (same behavior on real devices):
    List entries 1 and 3 are normal. Entries 2 and 4, which contain inline images, have their numbers offset above the baseline.
    I guess the line-height gets redefined based on the inline image, and then the numbers align based on line-height. Is there a way to change this within Muse so the numbers will consistently sit at the baseline even when the line includes an image? Is it something that needs to be addressed by modifying style sheets?

    Hi,
    You are correct in observing that inline objects affect line height, which in turn affects alignment of the bullet/number with the line.
    To address this, you can use negative wrap offsets on the inline (specifically top offset) using the Wrap panel: adjust the value until the inline no longer adversely affects line height.
    Hope this helps.
    Abhishek

  • Baseline Offset Bug for Inline Graphics

    Would like confirmation. Pages 2.0 has a bug in the spacing between lines above an inline graphic.
    If I paste in an inline graphic, pages will move the line the graphic is on down so that the top of the graphic does not overlap the line above. This initial spacing remains fixed and is not properly adjusted when I change the baseline offset of the graphic. If I give the graphic a negative baseline offset, the line above does not move down as it should leaving too much space. If I give the graphic a positive baseline offset, the line above does not move up as it should, and the graphic will overlap the line above.
    This erroneous behavior is not exhibited for the line below. If I give the graphic a negative baseline offset the line below moves down as it should. Since by default, the graphic when pasted in, does not descend below the line it is on, the line below is already up as high as it can be, so a positive baseline offset does not affect the line below.
    It appears that pages calculates an initial spacing to the line above when the graphic is first inserted and improperly keeps that spacing fixed despite later adjustments to the baseline offset of the inserted graphic.

    Done... Your Report (Review ID: 949821) - 64bit code with inline breaks when optimized.
    For my main piece of code it didn't like the GCC part. Still looking into it.

  • Setting AFrame height to the height of a graphic inside aframe plus padding

    Hello fellows,
    I am trying to set a permanent bottom padding between an anchored frame and a graphic object (embedded Visio) that is inside the anchored frame.
    However, instead of getting that padding below the graphic, the aframe becomes really small, and only 20% of the graphic is exposed.
    The code goes like this:
    SET vFrame = vCurrentDoc.FirstGraphicInDoc;
    Loop While(vFrame)
    IF vFrame.ObjectName = 'AFrame'
    SET vFrame.AnchorType = AnchorBelow;
    SET vFrame.GraphicIsSelected = 1;
    SET vGraphic = vFrame.FirstGraphicInFrame // Select the 1st graphic in the frame
    SET vFrame.Width = vFrame.TextLoc.InTextObj.Width;
    SET vFrame.Height= vGraphic.Height + 5mm; //Here is the padding of 5mm
    Set vGraphic.LocY = 0mm;
    Set vGraphic.LocX = (vFrame.Width - vGraphic.Width) / 2;
    ENDIF
    Please, advise!
    Thank you!

    This works for me:
    // Set a variable for the active document.
    Set oDoc = ActiveDoc;
    // Set a variable for the selected anchored frame.
    Set oAFrame = oDoc.FirstSelectedGraphicInDoc;
    // Update the anchored frame's position.
    Set oAFrame.AnchorType = AnchorBelow;
    // Set the width of the anchored frame to match the containing text column.
    Set oAFrame.Width = oAFrame.TextLoc.InTextObj.Width;
    // Get the first graphic in the anchored frame.
    Set oGraphic = oAFrame.FirstGraphicInFrame;
    // Make the anchored frame's height 5 mm taller than the graphic.
    Set oAFrame.Height = oGraphic.Height + 5mm;
    // Move the graphic to the top of the anchored frame.
    Set oGraphic.LocY = 0;
    // Center the graphic horizontally in the anchored frame.
    Set oGraphic.LocX = (oAFrame.Width - oGraphic.Width) / 2;
    After you get it tested, then put it in a function:
    Set oDoc = ActiveDoc;
    Set oAFrame = FirstSelectedGraphicInDoc;
    Set iResult = AdjustAFrameAndGraphic{oAFrame};
    Function AdjustAFrameAndGraphic oAFrame
    Local oGraphic(0);
    // Update the anchored frame's position.
    Set oAFrame.AnchorType = AnchorBelow;
    // Set the width of the anchored frame to match the containing text column.
    Set oAFrame.Width = oAFrame.TextLoc.InTextObj.Width;
    // Get the first graphic in the anchored frame.
    Set oGraphic = oAFrame.FirstGraphicInFrame;
    If oGraphic
      // Make the anchored frame's height 5 mm taller than the graphic.
      Set oAFrame.Height = oGraphic.Height + 5mm;
      // Move the graphic to the top of the anchored frame.
      Set oGraphic.LocY = 0;
      // Center the graphic horizontally in the anchored frame.
      Set oGraphic.LocX = (oAFrame.Width - oGraphic.Width) / 2;
    EndIf
    EndFunc // -------------------------------------------------------------------
    -Rick

  • Make iframe Webcenter 11.1.1.5 automatically adjust height according to the content

    Hi All,
    Anyone can help me how to make Iframe (application page template) webcenter portal automatically adjust height according to the content?
    Thanks in advance..

    Hi, i've successully done this for my blogging engine.
    I've uses jquery.autoheight.js
    In my page property :
    <script type="text/javascript" src="http://www.solutionsip.ca/lib/js/jquery.js"></script>
    <script type="text/javascript" src="http://www.solutionsip.ca/lib/js/jquery.autoheight.js"></script>
    In my html box :
    <iframe id="myframe" name="myframe" class="autoHeight" width="100%" scrolling="no" marginheight="0" frameborder="0" src="http://www.solutionsip.ca/blog"></iframe>
    This work in Adobe muse. My iframe adjust it self with my blog content.
    Exemple : http://www.solutionsip.ca/blog.html

  • Adding a doubleclick event on Inline Graphic Image

    Hello all,
    I'm trying to add a doubleClickEvent to an
    InlineGraphicElement, so that a popup window appears, and I can
    enter a new width and height. I'm having trouble adding a listener
    for the doubleClick event to an image that I'm about to add as an
    Inline Graphic Element. 1. Before or after I'm inserting the image
    with insertInlineGraphic(source,width,height), how can I add a
    double click event listener? 2. Once I get a doubleclick mouse
    event working, how again can I access the selected or doubleclicked
    image so I can modify width and height attributes?
    Thanks so much for the help!
    Justin

    Thanks so much for the reply on this. I finally figured out
    what you meant. I managed to capture double clicks in the canvas
    but the canvas won't register events on inline graphic elements
    (they seem to be blocking the canvas), and in addition I can't
    access the eventmirror, so I can't add a listener directly to an
    inline graphic element. So I'm not quite sure what the best way to
    handle this is.
    Justin

  • Colour below paragraph text in inline graphic way

    Hellow,
    I am doing children story book in indesign cs5. Every story has  title, picture, story, questions and some other fun matter.
    Story flows in two and two and half pages. Below STORY MATTER ONLY we want to put colour which flows one frame to another or one page to another.
    I am doing full INLINE graphic i.e. every thing in one frame  flowing automatically if I reduce or add matter in between.
    Can it possible colour patch below story matter  adjusted atuomaticelly if matter reduced or added and flow from one frame to another.
    Can we define in paragraph style colour below paragraph.

    sadhale wrote:
    Dear Peter Spier
    Yes, I tried paragraph rule also. But It dosent work because if paragraph ends with one or two words, colour patch dosent stretch to right edge.
    Then colour dosent go little beyond matter.
    I can use Anchor object, but I need to adjust anchorde patch as per matter.
    You will get better idea from the image below
    Have you considered applying the background color as a filled rectangle on the master page, and creating the white separators around graphics, and activities items as anchored objects with white fill and/or borders?
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Uploading Purchase Order Against the Sales Order through DTW

    Hi Experts,
    I searched the forum but could not see anything regarding this.
    Can I upload Purchase Orders against the Sales Orders using DTW upload facility? Manually we do it through the Logistics Tab in Sales Order.
    Thank you in advance.
    Kind Regards,
    IC

    Hi,
    You can use the BaseType, BaseEntry and BaseLine columns for this in the row level template (DLN1):
    BaseType: it's the Object Type of base document (ORDR.ObjType) which is '17' in case of Sales Order
    BaseEntry: it's the Document Entry of the base document (ORDR.DocEntry)
    BaseLine: it's the row number of the line in the base document (RDR1.LineNum)
    If you import your Delivery Notes with this info, the link to the Sales Order will be updated just as if you used Copy To in SAP.
    Regards,
    Nat

  • TCS2 Inline graphics hidden by conditional text cause unwanted carriage returns

    I have some FrameMaker documents where there are some small icons in the text.  Their anchored frames are set to be "at insertion point" in FrameMaker. They work fine normally, but when the icons are hidden by conditional text, they cause unwanted carriage returns in the RoboHelp output. The text is split into different paragraphs in the middle of the sentence.
    For example, this is the FrameMaker input:
    And this is the RoboHelp (WebHelp) output:
    I notice that if I manually edit a topic in the RoboHelp editor, I can manually apply a conditional tag to an inline graphic without causing a line break.
    So, I'm wondering if there's a way to avoid this when using linked FrameMaker documents.
    Thanks,
       Philip.

    Your logs are generated automatically by your system as it runs - there is nothing further that you need to do. They are ordinary text files, so you can display them on a terminal using any of the usual tools - cat, less, grep, etc.

  • How can we place an image in already created inline graphic frame?

    Hi,
    AIM::
    To place an image in the inline graphic frame.
    OBSERVATION::
    As i have analysed the snippet Runner,i came to know that it allows to load the placegun with the file(in my case image). but in order to place it,we need to click on the document..and then the image is placed at (0,0) of the page(I suppose Indesign does it automatically).
    what is needed,is to place image in already created inline graphic frame. i have created a inline graphic frame at some position in the story,but now i required to place image in this created frame.

    I have the same problem. Can you give me a short code sample for that.
    I have an image and want to place it in the currently selected frame...

  • How to adjust height of header image in fluid grid layout

    I appreiate the help people are trying to give me but I need help on what "to" do not on what "not" to do. I'm tryinh to tweek the height of my header image in the indivisual device views without screwing each other up.Meaning when I adjust the height in smartphone view I dont want it to affect tablet view, or when I adjust the height in desktop view it doesn't affect smartphone view, and so on and so on. The width works fine (right now at least) because its simple 100% of screen so it scales great right now. Its the height I cant get!!! I cant adjust it. Each device needs a little tweek beause of design issues. PLease help
    ps no tutorial i've seen helps with the issues i'm going through, none. And I've had people offer suggestions so I done wasting days looking at these things. I just need the anwser a what to do.

    If you alter the height in the applicable css media query only that device will observe the specified height.
    What is it you are actually trying to do. Simple example below:
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    <style>
    #header {
        width: 100%;
        max-width: 980px;
        margin: 0 auto;
    img {
        max-width: 100%;
        height: auto;
    @media screen and (max-width: 480px) {
    .changeHeight {
    height: 500px;
    </style>
    </head>
    <body>
    <div id="header">
    <img src="yourImage.jpg" class="changeHeight"></div>
    </body>
    </html>
    If you want to target screens with a max-width of 480px you would write a css media query:
    @media screen and (max-width: 480px) {
    .changeHeight {
    height: 500px;
    However not sure why you would want to change heights as it will distort the image.
    You could server up an alternative sized image for desktop, tablet and smartpone:
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    <style>
    #header {
        width: 100%;
        max-width: 980px;
        margin: 0 auto;
    img {
        max-width: 100%;
        height: auto;
    .tablet {
    display: none;
    .smartPhone {
    display: none;
    @media screen and (max-width: 480px) {
    .deskTop {
    display: none;
    .tablet {
    display: none;
    .smartPhone {
    display: block;
    </style>
    </head>
    <body>
    <div id="header">
    <img src="deskTop.jpg" class="deskTop">
    <img src="tablet.jpg" class="tablet">
    <img src="smartPhone.jpg" class="smartPhone">
    </div>
    </body>
    </html>

  • Spark datagrid item renderer - adjust height

    I am using a textinput as an item renderer for DataGrid:
    <s:GridColumn dataField="Comment" headerText="Comment"
                                                                                      itemRenderer="DataGridRenderer">
    </s:GridColumn>
    // Renderer
    <?xml version="1.0" encoding="utf-8"?>
    <s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                              xmlns:s="library://ns.adobe.com/flex/spark"
                                              xmlns:mx="library://ns.adobe.com/flex/mx"
                                              xmlns:gridEditorClasses="spark.components.gridEditorClasses.*"
                                              xmlns:ns="library://commons.stoneriver.com"
                                    >
              <fx:Script>
                        <![CDATA[
                                  override public function prepare(hasBeenRecycled:Boolean):void
                                            super.prepare(hasBeenRecycled);
                                            if (data)
                                                      if(data.FormCode == "")
                                                                Comment.text = data[column.dataField];
                                                                Comment.setStyle("backgroundColor", 0xFFFFFF);
                                                      else
                                                                Comment.text = "";
                                                                Comment.setStyle("backgroundColor", 0xB1CCF0);
                        ]]>
              </fx:Script>
              <!--- The renderer's visual component.          -->
              <s:TextInput id="Comment" width="100%" borderVisible="false" fontSize="{column.grid.dataGrid.getStyle('fontSize')}"/>
    </s:GridItemRenderer>
    How can I adjust a height of this renderer to fill the whole cell? Right now it comes out with a smaller height than a row height.
    Thanks

    I actually got word wrapping working with RichEditableText . But now when I specify height=100% all rows have the same extremely large height.

Maybe you are looking for

  • 11.5.10 ROI를 통해 INTRANSIT SHIPMENT(INTER-ORG TRANSFER)를 처리하는 방법

    제품: Applications 작성날짜 : 2006-05-30 11.5.10 ROI를 통해 INTRANSIT SHIPMENT(INTER-ORG TRANSFER)를 처리하는 방법 =============================================================== PURPOSE 11.5.10 Receiving Open Interface를 통해 Lot / Serial Controlled Items을 Intransit S

  • Windows 7 64 bit Cisco agent desktop issue

    Hello, We are upgrading to Windows 7 64 bit, we have UCCE 8.0 as our call center.  We done some testing and notice CTIOS agent desktop 8.0 doesnt work and then we tried CTIOS agent 8.5(4) which works to a certaion point the application opens but just

  • How to remove something in your download list

    just in case you wanted to know how to remove something that is currently or pending download all you have to do is highlight it and press the del key on ya keyboard (and everything must be paused) i know it works with podcasting downloads so try it

  • Error code 0xc19a0042 deskjet 6510

    Suddenly, when printing, the printer stops and shows the following error code: 0xc19a0042. Do anybody have a solution?

  • My ipod 30gb driver files is missing

    please help my ipod 30gb is missing driver files