geometricBounds undefined for the placed image

Hi all

I am just placing graphics inserted into a textFrame and their size so that they are exactly the same width as the textFrame. I mainly do this:

var reportFrame = app.selection [0]; Suppose that a block of text is selected

chart of var = new File ("foo.png").

var insPoint = reportFrame.insertionPoints.lastItem ();
inline var = insPoint.place (graphic) [0];

If {(inline.isValid)

var inlineBounds = inline.geometricBounds;

}

The last line fails, even if valid, fixed graphic because the graphic is larger than the text block (so the text block is full). Apparently in this case, InDesign doesn't keep track of the limits of the object, as part of the object is outside the (logical, I guess).

I need to know the size of the chart, so I can properly develop his frame parent to be of the same width as the textFrame encompassing.

I came up with a workaround that seems to be a terrible hack: to scale the chart down to a ridiculously small value (5%), how it is quite in the textFrame. At this point, I can get the limits, after multiplying by the scale factor to get the true limits, calculate a value true scale factor, then set limits correctly.


Any suggestions on the correct way to deal with this problem? Can I use my hack, but then I have to visit my membership card Club Cool programming interface.

Thanks in advance for all advice.

Kind regards

Chuck

Hi Chuck!

You can try using pageItem.resolve () and pageItem.reframe () or resize(). I'm sure that it works even if it is not made up.

It's one of those things that I had intended to try for a long time already, but work continues to go the way...

Substances

Tags: InDesign

Similar Questions

  • Error: The system does not license for the OS image. The system cannot find the path specified

    Hello

    I copied the image of Windows Embedded 7 T510 using HP thin client capture on a USB port. Now, I'm trying to load this image in an another thin client Embedded Win 7 T510 via a USB port.

    However, when the customer starts using this image of the USB, I get error below.

    "Error: the system does not license for the OS image! The system does not have the specified path.

    What solutions do you recommend.

    Thanks in advance

    Solution:

    I tried to install it on a Linux Thin client... Is there had this error.

  • Inadvertently, I had a graduated filter changed all 326 images in my folder. How can I remove this change of images without affecting other types of changes, I did for the other images?

    Inadvertently, I had a graduated filter changed all 326 images in my folder. How can I remove this change of images without affecting other types of changes, I did for the other images?

    Select all images, ensuring that you are in the develop module. Auto-Sync lights up and then just delete the graduated filter. You will need to activate the graduated filter tool and click on the PIN for the filter you have defined and then press the delete key. Then, you want to disable automatic synchronization. Now, just highlight the image you want to add the graduated filter and do your thing with her.

  • Rule of CSS style for the background image

    I'm doing a tutorial "Create your first website" and set up a CSS rule to add a background image.  The rule indicates in the CSS styles, but it does not appear in Design view.  I re-read the instructions 100 times.  Any ideas what I am doing wrong?

    Here's my DSS rule for the main image:

    #main image {}

    background-image: url (.. / images/main.jpg);

    background-repeat: no-repeat;

    position: relative;

    height: 376px;

    Width: 968px;

    }

    Thank you!  This is a duh moment where you finally see what is obvious.  I should have taken him.

    I appreciate your help

  • The child functions are undefined on the first image

    I'm trying to write a script on the main timeline that looks like this:

    // main timeline frame 0
    this.stop();
    console.log(this.Foo.Bar());
    

    That was a mistake of "Bar is not a function" (he has an undefined).

    This is because the this.frame_0 () function has not been performed on the child object (symbol)

    // Foo timeline frame 0
    this.stop();
    this.Bar = function()
    {
         return "Hello World";
    };
    

    I tried to move the main Timeline frame 1 that works

    // main timeline frame 1
    this.stop();
    console.log(this.Foo.Bar()); // prints "Hello World!"
    

    However, whenever I have a grandchild object, this problem spreads to the top of the timeline

    For example, it does not:

    // FooBar timeline frame 0, child of Foo
    this.stop();
    this.Bar = function()
    {
         return "Hello World";
    };
    

    // Foo timeline frame 0
    this.stop();
    this.Bar = function()
    {
         return "Hello World";
    };
    

    // main timeline frame 1
    this.stop();
    console.log(this.Foo.Bar()); // works
    console.log(this.Foo.FooBar.Bar()); // error, Bar() is not a function
    

    But, as expected, it DOES not work

    // FooBar timeline frame 0, child of Foo
    this.stop();
    this.Bar = function()
    {
         return "Hello World";
    };
    

    // Foo timeline frame 1
    this.stop();
    this.Bar = function()
    {
         return "Hello World";
    };
    

    // main timeline frame 2
    this.stop();
    console.log(this.Foo.Bar()); // works
    console.log(this.Foo.FooBar.Bar()); // works
    
    

    And of course, this does not

    // main timeline frame 1
    this.stop();
    console.log(this.Foo.FooBar.Bar()); // works
    console.log(this.Foo.Bar()); // Error, Bar is not a function
    

    My question is: How can I solve the problem of maintaining the ability to call functions, child without suffering creep of the timeline?

    I wish all these being on frame_0 so I need either:

    a method where I can place the functions directly on the generated classes so that I do not need to wait for the framework functions to call

    OR

    -> a method to reverse the order of function calls frame_0 of parent from child to child-> parent.

    Any help would be greatly appreciated.

    I found * a * solution, even if this isn't the best implementation.

    The first step to do is on the framework * after * your symbols are placed on the stage (in my case, frame_1), you can do the following:

    // FooBar, child of Foo, Frame_0
    this.stop();
    this.Bar = function()
    {
         return "I am FooBar";
    }
    
    // Foo, child of main timeline, Frame_0
    this.stop();
    var $this = this; // for the proper scoping of "this"
    this.Bar = function()
    {
         return "I am Foo";
    }
    this.FooBarBar = function()
    {
         return $this.FooBar.Bar();
    }
    
    // Main timeline, Frame_1
    this.stop();
    stage.addChild(exportRoot);
    stage.update();
    console.log(exportRoot.Foo.Bar()); // works
    console.log(exportRoot.Foo.FooBar.Bar()); // also works
    console.log(exportRoot.Foo.FooBarBar()); // even this works
    

    The only drawback to this is that there are a small * twinkle * because of the Frame_0 has none of my child functions performed and therefore their init States are not defined until Frame_1, but apart from that, it works fine.

  • Px of the placed image dimensions do not match illustrator.

    I have a 900 x 900 px image and a work plan 900 x 900 px.

    When I place the image on the artboard.

    the image is 675.094x675.094 px

    How can I place the image in its original size?

    Windows 7 | CS5

    Before placing them in Illustrator, re - save the image with either 72 DPI or remove its meta data. You can remove metadata in Photoshop when registering for the web and devices.

  • Quick launch of key for the following image loop sequenced?

    Hello

    I want to go fast in my loop of the sequence. Is there a key combination for the next frame?

    Thank you

    CTRL + mousewheel will jump through images in all structures

  • Is it possible to see the names of the places for the uploaded images of office?

    I downloaded several collections of images Fund (lightning, moon, scenery, etc.), but cannot see where these images are taken.  My office of Bing puts a new picture every day and I can move my cursor over the "i" zone and see where he is.  Is anyway to do this with the uploaded images?

    Thank you!

    Hello

    Thank you for contacting Microsoft Answers.

    Details of the images found in the Details tab of the image properties. If you do not see such a thing, you cannot find the location without the support of the photographer.

    Usually, these days, cameras equipped with GPS are available. They will download the information of location automatically, if the option is enabled, and you can easily find the location, according to the coordinates.

  • How to delete list of name for the computer images tags

    How can I remove the list of the names of tags for the photos to the computer. Cannot remove the

    It is possible that the change of name the Windows Photo Gallery
    database file could accomplish the task.

    (depending on your version of Windows Photo Gallery
    the database could be Pictures.pd4 or pd5 pd6.)

    C:\Users\[username]\AppData\Local\Microsoft\
    Windows Photo Gallery\Pictures.pd4 or pd5 pd6

    The database is a file... you will need to
    Change the following setting:

    Reach... Control Panel / folder Options / View tab.
    ... To check "Show the hidden files and folders" / apply / OK.

    The file ends with a advanced
    Search for pd4 pd5 and pd6.

    Reach... Start / Search / Advanced search.

    Check the box... "include not indexed, hidden and"
    system files' Enter pd4 pd5 or pd6 in the name field

    Try to rename the file .pd4, pd5 or pd6 to Pictures.OLD

    The next time that the Gallery is launched, it will create
    a new database file and the gallery will appear as
    He did the first time you have ever opened.

    The gallery must fill in again and some tags
    and metadata can be lost.

    If you are not satisfied with the results... you can delete
    the new database file. If you rename the original back
    Pictures.pd4, pd5 pd6 your gallery should be like
    It was before the change.

    Good luck...

  • Cordova 3.4 / file plugin 1.0.1 - resolveLocalFileSystemURL for the camera image

    I'm having a problem with some code that runs on Android 2.3 4.4 and iOS 5-7.  In short, he calls the getPicture of camera api method which managed returns a file URI.  An example of this URI is as follows:

    file:///accounts/1000/shared/camera/IMG_0000025.jpg

    He then took the file URI and trying to solve an entry of this file as follows:

    window.resolveLocalFileSystemURL (fileUri, success, failure);

    Note that it is now URL instead of the URI.  URI is deprecated since version 1.0.0 of the plugin file.  The recall of the error (failure in the example above) is always called.  He went to an error object as the API said it must. It has 1 property on this subject called "code" but instead of being one of the numbers that indicate what kind of file error happens the property code is just null.

    I also tried to change the URI to exclude the file:// to the path part, but the resolveLocalFileSystemURL then returns an error with code 5 (error coding).

    I made sure that I added this to the config.xml:

    And I also made sure that the config.xml file after running a build of cordova has permission for a shared access:

    <>ermissions >
       <>Ermit > access_sharedermit >
       <>Ermit > read_device_identifying_informationermit >
    ermissions >

    Someone at - it overview of what could be the cause?

    Thank you.

    Hello

    Thanks for the report! I connected a problem to make sure this is fixed in the next version of plugins.

    https://issues.Apache.org/jira/browse/CB-6242

    You can work around this by using instead the resolveLocalFileSystemURI:

    if (cordova.platformId === "blackberry10") {
        window.resolveLocalFileSystemURL = window.resolveLocalFileSystemURI;
    }
    
  • ORACLE_UNQNAME undefined for the Oracle installation using a silent mode

    Hello Oracle Experts,

    I am trying to install the version of 11 g R2 to oracle using silent mode on RHEL 5.4 X 86 64-bit.

    I followed the instructions in this link (to save the answer file as "db_cfg.rsp" of the Oracle installation by GUI method.)
    http://download.Oracle.com/docs/CD/E11882_01/install.112/e10840/app_nonint.htm#BABFEECI

    . / runInstaller-silent - noconfig responsefile - /home/oracle/Downloads/database/response/db_cfg.rsp

    No editing change on these files in the folder response: (dbca.rsp, db_install.rsp, netca.rsp) which was created from the runInstaller

    Successful ran the lsnrctl status shown below:
    -------------------------------------------------------------------------------------------
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = HA - DB1)(PORT=1521)))
    Summary of services...
    Service 'HADB1' has 1 instance (s).
    'HADB1' instance, State LOAN, has 1 operation for this service...
    Service 'HADB1XDB' has 1 instance (s).
    'HADB1' instance, State LOAN, has 1 operation for this service...
    The command completed successfully
    -------------------------------------------------------------------------------------------

    The '.bash_profile' file has
    ORACLE_SID = HADB1
    ORACLE_UNQNAME = HADB1

    The file "oratab" has
    HADB1:/U01/app/Oracle/product/11.2.0/Db_1:Y

    But I was not able to launch the Enterprise Manager 11 g Web GUI.
    1st,
    [root@HA-DB1 bin] #. / emctl status dbconsole
    ORACLE_UNQNAME environment variable not defined. Please install ORACLE_UNQNAME in unique name of database.

    2nd,
    [root@HA-DB1 bin] # export ORACLE_UNQNAME = HADB1 (ALSO tried orcl1)
    similar to the file name dbca.rsp which has DB_UNIQUE_NAME = "orcl11g.us.oracle.com" for the ADDINSTANCE and DELETEINSTANCE tests.

    I also found that the (INSTANCENAME = "orcl1" in section ADDINSTANCE) is the other (INSTANCENAME = "orcl11g" in section DELETEINSTANCE) the dbca.rsp file.

    3rd,
    [root@HA-DB1 bin] #. / emctl status dbconsole
    OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/Db_1/OC4J/J2EE/OC4J_DBConsole_HA-DB1_HADB1 not found.

    Thanks for your help.
    HY

    Salvation;

    root@HA-db1 bin] #. / emctl status dbconsole

    OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/Db_1/OC4J/J2EE/OC4J_DBConsole_HA-DB1_HADB1 not found

    This error please try the command below:

    . / emca - dbcontrol db config< it="" will="" ask="" u="" some="" question="" liks="" sys="" user="" pass,="" lsnr="" port="" etc.="" please="" give="" correct="" value="" and="" retest="">

    Respect of
    HELIOS

  • Size of the placed Image and the difference in quality

    Hello world

    I'm under Indesign Adobe cs6 Version 8.01

    I have a document which is 2048px x 1536px (for iPad resolution Retina display).

    I reszied all my images to about 1140px x 760px at 300PPI

    When I place images in Indesign it resizes the image to 180px x 272px

    The number of effective pixels and actual pixels are 300 PPI resolution that I've resized the in photoshop under the links section

    The quality of the preview is set high quality

    In the File Handling preferences preserve Image Dimensions when the restoration of the links are on

    I tried to save the image in Jpeg, Tiff and PNG formats to solve the problem

    I set my default object style Frame Gun on site and be sure to adjust automatically is checked and the editing of content is set to None.

    What can be done to rememdy this problem?

    I want just the images that I've resized in Photoshop CS6 to be placed in the exact dimensions that I've resized to do the set up files simple and easy.

    If you can please help with this problem as soon as possible I would be very happy.

    Thank you very much

    Save images to 72 dpi (without resampling), or their scale in ID.

  • Script or a function for the returned images

    Hello

    My team is an in-house creative team on a MAC environment. We do our own preflight. Occasionally sellers send us pictures to the rear. Some slip through the cracks before placing them in InDesign and we must manually inspect every image before sending it to a print provider. Y at - it a script or an InDesign feature that checks for that?

    Thank you

    Johnny_Bigtime

    This sets the flip of each link and its setting to zero. Note that the valve is to the point of reference of the Panel processing

    say application "Adobe InDesign CS5.5.

    say an active document

    the value IDLinks of links

    Repeat with myCounter from 1 to count IDLinks

    the value of absolute flip parent of the point myCounter of IDLinks to no

    value absolute flip of the parent of the parent of the point myCounter of IDLinks to no

    end Repeat

    end say

    end say

  • replacement for the microsoft image viewer

    There is an image viewer which behaves like a microsoft image viewer?

    I want to see my photos in normal, to move from one image to the next and print size if I need to.

    While there more than 1,000 items of software image appear in the App Store

    for OS X, whether or not one any of them can perform almost similar to measures

    images or mimics a windows OS application in a stranger.

    I used an image editor free good name of «ToyViewer for Mac»

    https://iTunes.Apple.com/us/app/ToyViewer/id414298354?MT=12

    And for a few years before the existence of the App Store. The manufacturer has

    recent version in the App Store; so I got that one too. This software

    works differently and offers several tools, takes allows...

    Seems to have been based originally on next OS. Worth the trip

    as she performs many functions if you learn the details.

    Another one (detail) to consider is "Graphic Converter" for OS X.

    http://www.lemkesoft.de/en/products/GraphicConverter/

    See the 'test for free' site to download a limited version.

    Good luck & happy computing!

  • I need the recovery of "Slate21 Pro" for the recovery image.

    My 'Slate21 Pro' machine became first no Android OS.

    (System freeze during update of Skype App. after that, always stop at the HP Logo when lit.)

    I tried to reset the Recovery Mode, but it failed.

    The last way is to recover by a flashing with recovery Image.

    Could you provide recovery Image files?

    Hello and welcome to the HP support community!

    Here is the HP Support page for your device:

    http://h20566.www2.HP.com/hpsc/SWD/public/readIndex?sp4ts.Oid=6657670&lang=en&cc=us

    WyreNut

Maybe you are looking for