Smart text reformatting does not

Hello

When I flow to smart indesign text reflow doc file does not properly. Please see my encodings below.

-----------------------

var myIndFile = File.openDialog ("Select Indesign File");

var myWordFile = File.openDialog ("Select Word File");

var myWordFileName = myWordFile.name;

var myIndFilePath = myIndFile.filePath;

App.Open (myIndFile);

myDoc var = app.activeDocument;

MyDoc.pages.Item (0).textFrames.Item (0) .place (file (myWordFile));

mydoc.textPreferences.smartTextReflow = true;

mydoc.textPreferences.limitToMasterTextFrames = true;

mydoc.textPreferences.deleteEmptyPages = true;

~ mydoc.textPreferences.addPagesTo = AddPageOptions.END_OF_STORY ();

~ app.activeDocument.save (file ("myIndFilePath" + "/" + "myWordFileName"));

Kind regards

Assia

It's the kind of thing you could do.

//https://forums.adobe.com/thread/1579131
var myWordFile = File.openDialog ("Select Word File");
!myWordFile && exit();
var doc = app.activeDocument,
    placePage = doc.pages[0],
    placeFrame = placePage.textFrames[0],
    newPage, newFrame, pageProperties, frameProperties;

placeFrame.place(File(myWordFile));
if (placeFrame.overflows) {
    pageProperties = placePage.properties;
    frameProperties = placeFrame.properties;
    newPage = doc.pages.add(pageProperties);
    newFrame = newPage.textFrames.add(frameProperties);
    placeFrame.nextTextFrame = null;
    newFrame.previousTextFrame = placeFrame;
}
doc.textPreferences.smartTextReflow = true;
doc.textPreferences.limitToMasterTextFrames = false;
doc.textPreferences.deleteEmptyPages = true;

Tags: InDesign

Similar Questions

  • HP Smart print icon does not appear

    After installing HP Smart print, icon does not appear in the command bar in the Internet Explorer browser. It appears only when I transfer a message outlook for the Internet Explorer browser. Plese help.

    Operating system Windows 7-64

    THAT IS TO SAY 9

    I found out that HP Smart printing is not compatible with IE (64 bit) so my problem was solved by using IE (256).

    Thank you very much.

  • HP officejet pro 8600 save as editable text (OCR) does not

    HP officejet pro 8600 save as editable text (OCR) does not

    the printer reports: can not detect install OCR s/w...please

    IrisOCR 12.3.4.0 is indicated as being installed

    How can I get printer recognize/find OCR?

    1 uninstalled existing installation

    2 deleted all files

    printer 3.re - installed s/w

    4 still does not

    5 uninstall printer new s/w (about you 4th time)

    6. deleted all files in HP printer

    printer 7.re - installed s/w BUT

    8.re - installed in a different folder: HP-2

    Now everything works fine

  • Smart Web printing does not work in IE9

    Smart Web printing does not work in IE9...

    I tried option, uninstall web printing smart hp and reinstalled. now it works... also if you use a pop up blocker, then you have to give permission to allow access to this site. It will come up as a small secondary window and print as did former windows messages.

  • smart photo Media does not

    smart photo Media does not

    Hello

    Try to use Recovery Manager to reinstall HP MediaSmart Photo - the procedure is detailed in the document at the link below.

    Reinstalling software and drivers - Windows 7

    After reinstallation is complete, restart the PC.

    Kind regards

    DP - K

  • applock and smart app lock does not work on 5.1.1

    Hello. I just upgraded to 5.1.1

    But applock and smart app lock does not work more that is very important to me.

    Who else has experienced the same problem? If you know a solution, let me know pleasr. Thank you

    @avacs

    It's a new update, application developers must check and fix this compatibility problems, not Sony. If the application has been developed by Sony, Sony should fix the problem.

  • My Hp photo smart 7960 printer does not always print the content of a page, it's just leaves the dashes and spaces.

    Original title: malfunction of the printer

    My Hp photo smart 7960 printer does not always print the content of a page, it's just leaves the dashes and spaces. Yet, some of it is printed. It always seems to be on the same site type. Other sites will still print ok... The uninstaller and reinstalling will correct or do I have to download updates?

    Hello

    What browser do you use?

    If this is the case with some specific websites then after return from the address of the site.

    I suggest you try the troubleshooting described in the article methods according if you use internet explore.
    I can't print or preview before printing a Web page in Internet Explorer
    http://support.Microsoft.com/kb/973479

  • Smart card reader does not correctly connect once the virtual machine is restored from sleep using the vmrum controls

    Smart card reader does not correctly connect once the virtual machine is restored from sleep using the vmrum controls

    Scenario is,

    1. smart card reader is connected to the VM with card inserted in

    2 initiate a prompt suspension of the VM toolbar

    3. now to resume the virtual machine by using vmrun command into the host machine

    WS t vmrun start xxx.vmx

    Now, the recovery of VM but the smart card reader that was previously connected does not work properly in VM that is to say, sometimes after CV chip card reader driver is uninstalling and a few other times, chip connected to the drive is not available on a virtual computer

    My requirement is after power, smart card reader can stay connected to the virtual computer with the already installed driver and the smart card.

    Kindly help with this problem.

    Host operating system: Victoire 2012 R2

    The VM OS: win 10 x 64

    Thank you!!

    Dear all,

    I had a work around for this problem. By adding "usb.autoConnect.device0 ="0xVID:0xPID"" this statement to the VMX file, solves this problem, that is, whenever the VM is wake-up by clicking on the link CV or using vmrun commands, it connects the unit in question automatically and it is charging correctly with his driver. Obtaining smart card detected after sleep\hibernate with no problems.

    VID & PID is respective ID of the device that can be seen in the properties of the Device Manager "Device Instance path".

    For more information about this, visit VMware KB: automatic connection of USB devices to the virtual machine power on

    ~ Surendra

  • When I create a button "submit" text "Submit" does not appear on the actual button.

    When I create a button "submit" text "Submit" does not appear on the actual button. Anyone know what is the problem?

    Depends on how you file the form. In Acrobat, it has a property to set the appearance of the button. In AA 8, field properties appear as below:

    It may vary in other versions (I on other machines), but the basic idea is the same. Need to add the label.

  • For Acrobat 9. Editing text tool does not work.

    Acrobat 9. Editing text tool does not work - even on documents created with my computer using fonts. Problem 2: when you try to export to Word 2010 there is no option for format Dox, only the .doc that belonged to earlier versions of Word.

    When you run the Recognize text command, you can select ClearScan for PDF output style. This then allows to modify the text in the PDF document. Right now, you probably use the searchable Image option by default when running OCR, which creates an invisible text layer in your document under the actual image. That's why the change does not appear in your document, but it is displayed when you export to Word. Here's a little trick that explains what you need to do:

  • Lightroom 5: AppleScript: action 'AXShowMenu' in the Smart Collection Panel does not display a context menu

    We are developing a tool for simple automation using Lightroom 5 (the most recent version of the penal code) using AppleScript.

    For certain actions, we need the context menu in the Panel smart Collections, for example, to import smart collections descriptions.

    According to the documentation and sources on stackoverflow and elsewhere, AXShowMenu should bring up this menu.

    So far I was not able to do the contextual pop-up menu.

    With the help of UIElementInspector and the browser of the user interface, I have found the element that has the attached AXShowMenu action. Based on the code provided by the browser of the user interface, I got the following script, that I run from the Applescript Editor:

    tell application "Adobe Photoshop Lightroom 5"

    activate

    tell application "System Events"

    tell process "Lightroom"

    set frontmost to true

    perform action 1 of static text "Smart Collections" of group 1 of row 11 of outline 1 of scroll area 1 of window 6

    delay 2

    end tell

    end tell

    end tell

     

    tell application "AppleScript Editor" to activate

    Note that if you try to recreate it, the number of the window as well as the number of the line may be different. In addition, the last line is just more convenience and not really relevant to the code.

    In the window results in the AppleScript Editor, I have the following:

    perform action 1 of static text "Smart Collections" of group 1 of row 11 of outline 1 of scroll area 1 of window 6 of process "Lightroom"

    --> action "AXShowMenu" of static text "Smart Collections" of group 1 of row 11 of outline 1 of scroll area 1 of window 6 of application process "Adobe Photoshop Lightroom 5"

    which means I have to invoke the action.

    But... nothing happens.

    Any insight, etc. workaround is much appreciated.

    Thanks in advance.

    Just for the records, I asked the same question on Stackoverflow, and I got a response that does not work. This solution uses a small Python program to really simulate mouse clicks.

  • Click and drag in the Favorites or in text fields does not

    Click and drag does not work with favorites anywhere, or any text fields. He used to work a lot in v11, but not v12

    I tried to revert to my version of Firefox v11 backup but it keeps automatically updated to v12 despite disabling auto update in the preferences and even when it is offline - frustrating.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • 23 touch smart pc envy does not

    Ant we know what the problem with my 23 envy touch smart PC does not work when the power supply plugged tried an Ant different plug got a green light so I tried it plug my pc in the led on the power supply did not come and absolutely nothing from the ant one pc got any clues thanks

    Hello @ORBCHEWIT657,

    I understand that when you plug your power wall adapter, the light comes on, but when you plug it in to the HP ENVY 23 light not illuminate. I suspect that your power adapter is defective. I'd be happy to help you, but first of all, I encourage you to publish your product for your computer number. I'm a link a HP Support document below that will show you how to find the number for your product. Because with that I can give you accurate information.

    How can I find my model number or product number?

    Will you please re-post with the information requested and I would be happy to provide assistance. Thanks for posting on the HP Forums. Have a great day!

  • HP media smart cam sex does not work

    HP media smart webcam does not work

    Hello amit1,

    Once you select your operating system from this link, you will see all the available drivers for your laptop.

    Please let me know if it helps.

    Good luck!

  • print easy text.vi does not work in the executable

    I have 3 computers to target that runs labview 2012 on a PXIe8101controller.  In my statemachine the vi prints a report using simple text, report vi (palletized report generation) at the end of the trial.  Its an executable vi on all 3 machines.  On 2 machines, it works fine.  On the 3rd he hangs up when I'm logged in as a standard user.  If I log in as an administrator, it works very well.  The thing I noticed is that on 2 machines, that it works, the image is "factory...". 1.2.1F6' (under control panel > systems).

    On the test equipment that it only works in admin mode the original image is 1.2.4.f1.  MAX is also 5.3.1 on that past fine and 5.5.0 f1 on the one that does not work on.  Everything I'm mssing?

    Thank you.

    solved...

Maybe you are looking for

  • Do find on the page reposition the bottom in v.15.0.1

    In previous versions of Firefox, find on the page (Ctrl + F) to reposition the page to place the text found at the bottom of the window. With version 15, Firefox positions the text found in the middle of the window. How can I make Firefox v15 return

  • How do I block diagram page where a free label is visible/active?

    Hello I'm looking to be able to select a certain free tag and make the block diagram page where it is visible/active? I want to be able to screenshot of the diagram where the free label programmatically. Is this possible? Rgds, SMcS12

  • Win vista hm.prem./wu/update/

    Win vista hm.prem./wu/UPDATED - 1 attempt today (successfully) - install/THEN/5 x of other attempts to install the update-TODAY ' HUI-a failed and successful "duplicate" //-AFTER-// I changed the day - to - download & install update after selection.

  • Can I update my windows xp prof in windows 8

    Can I update my windows xp prof in windows 8

  • keyboard multimedia HP and windows 7

    I try to install the drivers for my multimedia keyboard - vista 32 - but it does not work with windows 7 - please help me! your help will be appreciated. SFAD