Fit Content To Frame Crashes InDesign CS3 !

Hi
iam try to fit the content to it's frame
if(Utils<Facade::IFrameContentFacade>()->CanFitContentToFrame(UIDList(newPageItemRef)))
ErrorCode err=Utils<Facade::IFrameContentFacade>()->FitContentToFrame((UIDList(newPageItemRef)));
But whenever I execute this methos InDesign CS3 crashes..
Wht could be the reason??
thanks,
nataraj

You probably need to pass the content item and not the frame.
Use IHierarchy to navigate to the first child item of
newPageItemRef and pass that to FitContentToFrame instead.

Similar Messages

  • Fitting Content to Frame to a Path or Mask

    We have been asked by a customer to try and achieve the following:
    They have a number of eps's of a flat screen TV's. For each TV, there is a path around the outside. We will call this Path 1. There is a second path around the screen of the TV. We will call this Path 2.
    Is there a way of placing another image, and fitting content to frame (just like in Indesign), using Path 2 as the bounding box?
    We are using both CS3 and CS4.

    Mark, while Scripts may not be necessary they can add a level of convenience unattainable with Actions.
    As concerns the PAID HELP, the Photoshop Scripting Forum has a couple regulars who, while they may offer their services professionally, still give their advice freely; but in case Adam has no Scripting-experience his needs, should he choose to try a Scripting-solution, might exceed »advice«.
    Having only recently started to appreciate and utilize the capabilities of JavaScript for Photoshop myself I may appear overzealous in advocating it, but everybody will have to decide for themselves if they want to give it a try.
    With possibly hundreds of images I wouldnt want to rely on the screens (or their paths) to all have the same diameter and a Script can allow for that with transforming the placed image according to the height or width so as to always fill the area completely (thus clipping at the top/bottom or left/right depending on the relation).
    And (though too complicated for myself) it would be possible to let Photoshop work off folders and not get stuck by the occasional file that doesnt conform to the naming conventions or lacks a path by ignoring it and documenting unedited files at the end.
    Thats always assuming that the photographs of the tv-sets are fairly frontal, because if they are in perspective then the matter gets much more complicated, but what with the allusion to doing it in Indesign I concluded perspectival transformation isnt required anyway.

  • Shouldn't object style with 'fit content to frame' work with updated images?

    I have a script that places pdf files from a list onto pages. The rectangles are built with an object style that fits content to frame.  This works,  but if the pdf file is then modified, InDesign does not fit the new content to the frame when the link is updated. Is there a reason why the object style does not honor its settings?
    Thanks.

    I have a script that places pdf files from a list onto pages. The rectangles are built with an object style that fits content to frame.  This works,  but if the pdf file is then modified, InDesign does not fit the new content to the frame when the link is updated. Is there a reason why the object style does not honor its settings?
    Thanks.

  • CS4 fit content to frame default

    Hi all,
    Just a quicky, we have just upgraded to CS4 at work (late adopters I know!) and we have an issue with how ID CS4 fits the frame to content by default.  The problem with this is it is changing templates of material built in earlier versions of ID, for instance changing ellipse frames to squares, resizing all the frames to fit the content, etc. Is it possible to change this default behavior? All help is appreciated.
    Thanks

    Hi Guys,
    Thanks for the responses and I apologise for the delay in replying, it has been flat out here... Anyway I just want to confirm that the problem still exists. I am unsure how to explain it further although I will try
    When the frame fitting option is set to 'fit content to frame' Indesign applies a 'fit frame to content' which the operator must then undo. This especially occurs when placing content into ellipse or polygon frames. Indesign always applies a "fit the frame to content" (which obviously blows away the shape), the operator must then undo the 'fit frame to content' that CS4 automatically applies (crtl+z).
    Not sure it is related but we also suffer from a one minute delay upon opening Indesign and Acrobat, the windows "csrss.exe" process goes nuts and sits on nearly 100% cpu usage for about a minute before the program becomes usable. It seems related to the number of fonts installed on the system (around 2000) because if I remove all the fonts, delete the adobefnt files and reinstall the fonts the machine runs fine for a week or so before it bogs down again. I know that this file is not a virus, as we run symantec on our machines, also there is only one copy of this process in taskmanager. Also this has happened across multiple machines with varying hardware. Is there a hard limit on fonts?
    Thanks again
    Regards Chris

  • Tables: Fit Content to Frame

    (InDesign CS2)
    Since "fit frame to content" is available when you select a frame that contains a table, but "fit content to frame" is not...I'm assuming it's not possible to do that.
    I understand that a table can lie well within or outside of its frame, and that can be a nice thing. However, what if I want to make sure the boundaries of the actual table, left to right, take up an EXACT width? Seems like making the frame the exact width I need and then having "fit content to frame" available is what I need.
    Am I missing something? Does anyone have a good workaround?

    Lisa,
    This script will do the job (although the interface is a bit primitive. Just type a number in the units you're using for the horizontal ruler. It displays the "before width" and you can then type the number you want instead. It distributes the extra or the deficit across the existing columns of the table.
    //DESCRIPTION: Set Width of Table
    // by Dave Saunders
    if ((app.documents.length == 0) || (app.selection.length == 0)) { beep() }
    aDoc = app.activeDocument;
    aSel = app.selection[0];
    aTable = findTable(aSel);
    tWidth = prompt("Table width", String(aTable.width));
    if ((tWidth == null) || (tWidth == "")) { exit() }
    n = aTable.columnCount;
    w = aTable.width;
    for (j = n-1; j >= 0; j--) {
      aTable.columns[j].width = aTable.columns[j].width * (tWidth)/w;
    function findTable(obj) {
      if (obj.constructor.name == "Table") { return obj }
      while (obj.constructor.name != "Table") {
        obj = obj.parent;
        if (obj.constructor.name == "Application") {
          errorExit("Can't locate table");
      return obj;
    function errorExit(message) {
      if (arguments.length > 0) {
        if (app.version != 3) { beep() } // CS2 includes beep() function.
        alert(message);
      exit(); // CS exits with a beep; CS2 exits silently.
    To use the script, copy and paste to ExtendScript Toolkit and save with an appropriate name in the form YourName.jsx in the Scripts folder of the Presets folder of your InDesign CS2 folder (you could put it in a subfolder if you wish). Then to run the script, set-up the appropriate initial conditions (click with the text tool in the table) and double-click the script's name in the Scripts palette.
    Dave

  • Can't see the fit content to frame option....

    Hi All,
    I'm having some issues trying to click on:
    Object > Fitting > Fit Content to Frame
    This area is simply greyed out and I cant' select the option to do so.
    Does anyone have any ideas?
    Thanks
    Daniel

    I just wondered if you can please advise how I could click a button and have the text within the text box automatically resize to fit the frame?
    This is not a built-in capability of InDesign.  Macinbytes told you that this was the case, and John told you why.
    However, InDesign has a scripting interface, so plenty of people have written additional tools to make particular tasks easier. I think that one of these scripts from In-Tools will be exactly what you're looking for.

  • Suddenly cannot fit content to frame with cmd/shift/E in Mac

    I suddenly, when working on newspaper pages from a set of master templates, can no longer fit an image to a frame using the command/shift/E shortcut to fit content to frame. I can fit the image to frame using the pulldown menu, but not with the shortcut. All I get is an error tone. Also, when I click on the image window with the direct selection tool, instead of the image window being selected, you see this frame outside the image window, like the frame it's working with actually is larger or something (I hope I explained that right). Anybody know what's going on here, and how I might can fix it? I'm sure I accidentally changed some setting somewhere.

    It would help if you gave details about your version of ID and OS.
    The shorcut problem might be due to a switch to a new shorctut set. Any other shortcuts not working? Is the correct set selected when you go to Edit > Keyboard Shorctuts...? Anything else acting strangely? That could indicate a corrupt set of preferences.
    When you select an image with the direct select tool you should see the bounding box of the image which might be larger than the frame containing it (is the image cropped?) selecting a frame withthe direct select tool would reveal a text wrap path, if wrap is applied to the frame. Does either of those sound like what's happening?

  • How can I make a pdf from a frame in Indesign CS3

    Is it possible to make a pdf-file from a selected frame in a Indesign-document?
    Way, way back we were able to do this in Quark Xpress by using a plugin.
    Is there a plugin like this available for Indesign (CS3) ?
    Help would be very much appreciated.

    http://www.automatication.com/selection-to-pdf-script.html
    Harbs
    http://www.in-tools.com

  • New user keeps crashing indesign CS3

    So i had to add a new user for someone that needs to work on my station in the morning.  I created a new admin user for them and everything else in CS3 suite works okay but indesign. Indeisgn launches okay but when a document is launched it crashes. This is on a G5 10.4.11 OSX. anyone have any clue?

    Repairing permissions is never the answer but people give it out all the time. Even major vendors Mac support team do. Adobe doesn't use the .pkg format for their installers, therefore repair permissions will not help.
    See http://support.apple.com/kb/HT1452
    Does Disk Utility check permissions on all files?
    No. Files that aren't installed as part of an Apple-originated installer package are not listed in a receipt and therefore are not checked. For example, if you install an application using a non-Apple installer application, or by copying it from a disk image, network volume, or other disk instead of installing it via Installer, a receipt file isn't created. This is expected. Some applications are designed to be installed in one of those ways.
    Rather than repairing permissions your better bet assuming you made them an administrator is to go to your Adobe InDesign CS3 folder and slap the Get Info (CMD+I) and check under permissions. I'll assume since you made them an admin that you are also an admin. Under permissions there is a second set of pulldowns called "Group" which are probably going to say "Administrator" on the first and "Read & Write" on the second. Select the second one, set to read, set back to read and write, hit the "Apply to Subfolders" button. You'll likely be prompted for your password.
    Now open the Adobe InDesign CS3 folder, switch to List View, select all files, hit ALT+Right Arrow. Press select all once more, repeat the step above. This is because OS X is fairly poor about applying permissions.
    If you are unconfident feel free to copy your entire folder to your Desktop prior to doing this.
    I'd wager a shiny nickel you have installed a 3rd party plugin, could be as innocuous as a font manager autoactivation one. You won't see the errors from those oftentimes until a document is loaded.

  • Opening InDesign CS and CS3 documents Crash InDesign CS3

    Hi Everyone,
    When we have a CS3 document open, and we want to open a CS document simultaneously, InDesign completely crashes and will not open again until the computer is restarted. This has happened every time we have attempted this. Is this a bud with CS3??? The only work around is to close the CS3 Document and open the CS document, then re-open the CS3 document. This works, but it is a real pain, and time waster! Does anyone have any suggestions???
    thanks~
    Jarrod
    Compuer:
    Pentium 4 @ 2,4Ghz
    Win XP pro with SP2
    1.0 GB ram

    Have you updated CS3 to 5.0.2?
    When you say crashed, do you get any error message? Have you checked Task Manager to see if the application or the InDesign.exe process is still running? There are a fair number of reports that InDesign "disappears" when opening files from Explorer and this might be something similar.
    Peter

  • TextModel Replace Text Crashing InDesign CS3

    Hi,
    i'm using textModel->Replace(range.Start(& ml), result.Length(), &result) to replace text.
    it works great with short text but when there's alot of text, inDesign crashes..
    have also tried with Delete() then Insert() but that crashes also..
    does anyone know how to fix this?
    thanks!

    Read the programming guide about persistence and commands.
    In general you should not invoke methods yourself that smell like they could change the document (or book or library or preference).
    To your rescue, see docs/references/sdkdocs/html/classITextModelCmds.html
    Dirk

  • CS3: Period in findWhat crashes InDesign

    This code crashes InDesign CS3:
    app.findTextPreferences.findWhat = ", .";
    app.changeTextPreferences.changeTo = ".";
    app.changeText();
    This works fine:
    app.findGrepPreferences.findWhat = ", \\.";
    app.changeGrepPreferences.changeTo = ".";
    app.changeGrep();
    Hope this helps someone.
    Walt

    Sadly, CS3 may crash on virtually any scripted search/replace. I had it crash on double quotes, tabs, and even spaces. Usually, moving the specific s&r from regular to GREP or the other way around clears it for that offending file only.
    The symptom seems connected to a specific file (as it may always fail on one and never on another), but saving as INX and re-loading never cleared it up for me. As it is quite a hassle to find the exact code it crashes on this time (with intermittant crashes on each new try), I usually shrug and do my replaces from memory. After all, it's just a few hundred of'em.

  • Opening CS2 files in InDesign CS3 - crashing

    Hi,
    I'm just wondering if anyone knows why InDesign CS2 files might crash InDesign CS3 when you try to open them (on Mac OS10.4.11)? The files still crash CS3 even when all the elements have been deleted from the file - all the text, pics, swatches, para and char styles, layers. If the file is saved as and then try to open it in CS3 it still crashes InDesign.
    Very much hoping someone might be able to shed some light....
    Thanks very much,
    Susannah

    Might InDesign CS2 have been using a third-party plug-in?
    Alistair

  • Multiple place and fit content

    I have several chapters of a book done in CS2. These were sent out and edited by a third-party in CS4 (communication issue there).
    So they were backsaved as an .INX file and now I'm using CS3.
    Problem is that the embedded images and links to 20 or so illustrations were not honoured and defaulted to "foo. jpeg" in the links pallette when I opened these in CS3.
    The embedded images (excel graphs) I'm not worried about, it's the linked images which I now have to go in and manually relink.
    The graphic frame and content boundary is intact so re-linking seems to work fine, but I'm wondering If i can select the art and multiple place each image within it's corresponding frame and have the attribute  "fit content proportionately" assigned at the same time.
    Do I use an object style?? I'm not too familiar with this, so if anyone can run me through the simple steps, it would be appreciated.
    Also, I noticed in CS3 that the number of icons for fitting content are reduced on the toolbar (see image circled) compared with CS2?
    Are the options to "fit content to frame, center content etc" only available from the drop-down menu or from the short-cuts?
    Thanks in advance,
    Julian

    Peter,
    Yip, those would be the icons I was looking for, but maybe they weren't visible depending on what i had selected, since I swear I looked for them..but there they are in my screenshot
    I was thinking a basic object style with just fram-fitting option selected to "fit content prop.", but I guess you are right in that the time saved would probably be negligible.
    Any idea as to why the links broke - just a consequence of back-saving??
    Julian

  • Scaling content and frame simultaneously

    I think the best way to explain our problem is by explaining what we want to do.
    We've recently upgraded to CS3 from CS1. In CS1, we would place advertisements in our magazines. The ads might sometimes have a white frame around them (no chance of eliminating them, so not a viable solution). Since the ads didn't always come in perfectly proportioned to their placements, we had to sometimes resize the ads manually, so what we did is we placed the ad image in the file, drew in the frames around the ad (to eliminate the collateral white border) and then use the manual sizing on the top toolbar to resize the ad (at times disproportionately) to its placement. But the content would also resize inside the frame.
    This, however cannot be done in CS3, as far as I can see. We follow all of these steps, up to the last step where we manually enter the new size, except when we do that, the content in the frame does not change at all. The frame instead just cuts into the content.
    Fitting content to frame doesn't work either, because of that white border that's part of the content to begin with. Does anyone know what option we may set to make this back to how it operated in CS1?

    I'm worried about your statement "drew in the frames around the ad." Did you draw something new? The ad should come in with a frame, and if you draw a new frame, it may not be associated in any way with the ad. I do this all the time in CS3 and CS4, and both the frame and content resize together when I click on the scale buttons in the toolbar.
    1. Place the item on the page.
    2. With the solid arrow tool, click on the object and move in the edges of its frame to where you want them, getting rid of white space.
    3. Move the object so that two sides are where you want them (for instance, the top and left line up with the columns or guides).
    4. With the tool-bar's "reference point" chosen appropriately (the top left of the object in this example), use the scale items in the toolbar to scale the object up or down. Both the frame and the content should be affected. Or, alternately, click on the lower right corner of the object, and while holding shift and command, move the bottom corner to scale. (Holding command means that the content is resized along with the frame, shift means that the horizontal and vertical scaling will be identical.)

Maybe you are looking for

  • 1x80070001

    I got error (1x80070001) during the installation Windows Vista or Windows 7. I format "C" drive and try to install Windows Vista but on 4%, I got said error and cancel copy. What I do? Is this partition problem (FAT / NTFS) or other problem. Please e

  • Area of the parts != Area of the whole

    My tables are polygon datasets stored in NAD83 (SRID=8265) and I have noticed that the sum of area calculations of a subdivided polygon do not equal the area of the original polygon. I created a simple test case to confirm the results. I created a sq

  • Permutations of ABCDEF where A is before D

    I am trying to get started writing the code for finding the permutations of ABCDEF where A comes before D. I would appreciate any help on getting started with this project.

  • Is it possible to make a screen control appear only for a specific patch?

    I use MainStage almost exclusively for guitar. Frequently I will use different guitar amps in different patches (usually the AmpliTube plugin, but occasionally Amp Designer). I'd like to use different screen controls for specific patches. For example

  • ODI Data Quality - Relationship Linker Process

    Hi All, I have been trying to use the relationship linker process in the ODI data quality interface with limited success. My Problem: The process tab in the relationship linker asks for two inputs. 1) Attribute containing record type & 2) Attribute C