Copy a TextFlow element

OK apparently I completely do not know what I do, I'm trying to copy a TextFlow object, so that I can past it reformatted in another location.

what I'm trying, looks like related with 'this ._textFlow' code being already a TextFlow functional and very formatted, what I get when I try to remove children of this copy is an error like

"" newelement"always held by an another FlowGroupElement"... so I don't think I'm getting a single copy, I am also unable to change styles of this copy by crossing through the display hierarchy (view in the other code attached). Although this work of dose if I loop through the original TextFlow and re get.

After this code does not, I know what I'm doing is probably the wrong way to do what I want to do, but I do not see the methods or the new classes that will allow me to do what I'm trying to... has someone done something like that?

A few comments.
(1) no reason to copy the configuration. Suffice it to say TextFlow (_textFlow.configuration) new
(2) your call addChild adds a _textFlow (TextFlow type I guess) as a child of copyFlow. Which is not allowed. A textFlow cannot have a parent.
(3) why not just say copyFlow = _textFlow.deepCopy ()?
(4) this change - it has not used to allow adding a FlowElement element as a child of another element FlowElement unless its parent is null. Which changes (he has changed in 370?) while addChild will remove it if its already parented.

Hope that helps
Richard

Tags: Adobe Open Source

Similar Questions

  • How to copy a textflow?

    Dear Sirs,


    I have to make a copy of textflow, but I'm having difficulties. I try to use the deepCopy, but it also copies the header < textflow / >, and when I insert into another textFlow, it is double:

    var el1: element FlowElement = textflow.deepCopy ();

    textFlow2.replaceChildren (0, textflow.numChildren, el1);

    Result:

    " < TextFlow whiteSpaceCollapse ="preserve"xmlns =" http://ns.Adobe.com/TextLayout/2008 ' > < whiteSpaceCollapse TextFlow = "preserve" xmlns = " http://ns.Adobe.com/TextLayout/2008 ' > Test < / TextFlow > < / TextFlow > .

    Is it possible to go about this?

    I'm not sure of what getTextFlow() and getTextFlow2() refer.

    My original example has not been tested - sorry about that.  The underside of the works.  IIN legacy addChild does not automatically remove a child of its parent.  The most recent versions of make.  For this you will need to use the code in green.

    var textFlow:TextFlow is TextFilter.importToFlow (markup, TextFilter.TEXT_LAYOUT_FORMAT);.

    var copiedTextFlow:TextFlow = textFlow.deepCopy () as TextFlow;

    var someOtherTextFlow:TextFlow = new TextFlow();

    someOtherTextFlow.replaceChildren (0, someOtherTextFlow.numChildren);

    while (copiedTextFlow.numChildren)

    {

    in versions of the order, it's a little more complicated (pseudocode here you need to ensure debugging)

    child var = copiedTextFlow.getChildAtIndex (0);

    copiedTextFlow.removeChild (child);

    someOtherTextFlow.addChild (child);

    someOtherTextFlow.addChild (copiedTextFlow.getChildAtIndex (0));

    }

    Kind regards

    Richard

  • My serial number is not activate my copy of Photoshop Elements 7

    I recently had to reinstall my copy of Photoshop Elements 7 after updating my Windows 10, however my serial number for this product which is linked to my Adobe ID account no longer works.

    Copying items 7 came pre-installed on my laptop when I bought it, and I used this serial number before you activate when my hard drive failed and I got a new and had to reinstall it.  But it was when I was on Windows 7, do not know if the upgrade to Windows 10 may have something to do with it not accepting is not the serial number, just comes up with red cross when I entered it.

    Help.

    Disable you first?

    When you have a non-functional computer and cannot turn off

    Don't forget to request ONLY activation support set your number of activations

    Serial number and activation support (no-Cloud) https://forums.adobe.com/thread/2041990

    In addition, this program is really not compatible with Win10

    An idea that MAY work to install or run some programs in Windows 10 old... works for some, not for others

    -http://www.tenforums.com/tutorials/15523-compatibility-mode-settings-apps-change-windows-1 0 - a.html

    - or run as Administrator http://forums.adobe.com/thread/969395 to assign permissions Windows COMPLETE can help... said yet, but sometimes it is necessary for all Adobe programs (this is same as using an administrator account)

  • I have a purchased copy of PhotoShop Elements 9.  When I run it now I get an error message - error: 213:19.  What does that mean?  How to use the software I paid?  Thanks a lot for your help!

    I have a purchased copy of PhotoShop Elements 9.  When I run it now I get an error message - error: 213:19.  What does that mean?  How to use the software I paid?  Thanks a lot for your help!

    See here:

    In Photoshop Elements license error

  • looking to purchase a copy of the elements after the trial. However, basket indicates platform: Windows. I need for Mac. Before I commit the activation code will work for the Mac. Impossible to find anywhere on the Web site to buy different versions.

    looking to purchase a copy of the elements after the trial. However, basket indicates platform: Windows. I need for Mac. Before I commit the activation code will work for the Mac. Impossible to find anywhere on the Web site to buy different versions.

    Hi Mljohno,

    If you search for items 14, go into products from Adobe, click on 'Buy' in front of the name of the product and use the drop down menus to specify Mac or Windows full version or upgrade.

    Best,

    Del

  • Stupidly, I recently bought a copy of 14 elements Adobe, then realized my computer doesn't have a DVD slot, can I use this version of items that I bought or I have to buy another downloadable version?

    I bought a copy of 14 elements, but my computer doesn't have a DVD slot! Is there a way I can still use the paper, as I have the serial number on the back, or do I have to buy a new downloadable copy?

    Thank you.

    Dodger

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

  • Serial number do not activate my copy of Photoshop Elements 7, HELP!

    I recently had to reinstall my copy of Photoshop Elements 7, because it is no longer able to open. GIF files. After reinstallation, my serial number provided on the back of my package product is no longer works. I contacted Adobe support via live chat, and they were not able to help me, a lot of my frustration.

    This question is a seriously my productivity hack, and I'm very frustrated that I can use is no longer a product that I paid for.

    Real contribution to this issue would be greatly appreciated.

    I had a friend help me off site. It turns out that digital downloads and the canned versions have different caches serial.

    Thanks for nothing, Adobe Support, you're about as useful as a bag of hammers.

  • How to install an old copy of photoshop elements 1.0

    I have an old copy of Photoshop Elements, I am trying to install on a Windows 7.0 machine.  I don't want to buy the new version.  When I try to install it, it is said that 'Internet Explorer 4.0 or higher is required' and will not let me install.  I have IE 11.  Is not recognize it.  When I tried to download the latest version of items and put them in my n my copy of 1.0 serial, he said that it was not valid.  What can I do to use the old software of items I bought?  I got it used on several different machines over the years and have never encountered this problem before.

    There is a problem with IE10 + because it is wrongly considered IE1.  To work around this use another browser or compatibility view (http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-10)

  • Do you want to download a second copy of Photoshop elements 12 &amp; 12 items first

    The link given to other members of the forum who wish to download older versions of Photoshop Element (IE https://helpx.adobe.com/download-install.htm) has not yet been updated to include the PES 12 - so where can I go to download a second copy of Photoshop elements 12? Also, where can I download a second copy of first 12 items?

    Download Photoshop Elements products | 10, 11, 12, 13

    Download Premiere Elements products | 10, 11, 12, 13

    both work here and includes Mac and Windows downloads.

  • Registration for the web function has stopped working in my copy of photoshop elements 12.  I get this message "the operation could not be completed.  The system cannot find the path specified"reset preferences was not fixed.

    Registration for the web function has stopped working in my copy of photoshop elements 12.  I get this message "the operation could not be completed.  The system cannot find the path specified"reset preferences was not fixed.

    My os is windows 7.  elements of 12 worked fine for several months and then save for web stopped working

  • How to download a copy of Photoshop Elements 8 for my laptop (I have it on my desk)

    How to download a copy of Photoshop Elements 8 for my laptop (I have it on my desk)

    Download traore the next page:

    http://helpx.Adobe.com/Photoshop-elements/KB/Photoshop-Elements-7-8-9-downloads.html

  • The water is accidentally spilled on my computer and it was completely destroyed, I lost everything I had including all of my applications. I have now bought a new computer and would like to re-download the copy of Photoshop Elements that I bought last ye

    The water is accidentally spilled on my computer and it was completely destroyed, I lost everything I had including all of my applications. I have now bought a new computer and would like to re-download the copy of Photoshop Elements that I bought last year can I do this? How can I do this? And how do you speak directly to a customer service representative to shout aloud?

    What version of photoshop elements and the operating system?

    Maybe is one of them:

    (downloads for older versions)

    Download and Installation Help

  • TextFlow elements style with CSS

    I'm just trying to get my head on how to style of the individual of the TextFlow elements as you would in HTML/CSS where your markup contains no style information - just pure markup. And CSS formats the items when you export the text.

    Specifically, I want to put a BackgroundColor on my LinkElements.

    I began the exploration of the Configuration class with its properties linkNormalFormatDefault and linkHoverFormatDefault. It worked basically, except that I couldn't get a background color to show, and he introduced a bunch of style tags cooked in markup - so if I had to save this markup in a database these styles would still be there the next time I visited.

    So in order to keep the markup clean and free of built in a style, I explored the SimpleEditorWithCSS sample that comes with the framework for example. It uses textFlow.formatResolver to css styles secret to their formats in the TextFlow. Seems cool and all that I want, but I can't seem to style links (or the < flow: tags href). I changed the CSSFormatResolver.as to try to get to the style LinkElements, but can't seem to.

    Is there an easier way to go about this?

    BackgroundColor applies only when it is set on a LeafElement and backgroundColor inherits the default question.

    You could solve this problem with the formatResolver checking chain relative to each item for a LinkElement and then returning a TextLayoutFormat with backgroundColor = "inherit".

    Then the LeafElement will inherit the LinkElements backgroundColor.

    I see that Configuration.linkNormalFormatDefault etc. effects to export setting.  It affects exports, if you set the property to a FlowElement element.  Note the Configuration must be created and initialized before the constructor TextFlow.  Any changes after that will not show the new TextFlow.

    Hope that helps,

    Richard

  • Can I make a physical copy of the elements of 14 photo shop?

    Yes,

    Hi all

    This is my first ever having to ask a question about the photo shop elements. I want to buy, download and install items 14. My question is. If I do I'll be able to make a physical copy of the software? The reason I ask is because in November last, I had a catastrophic computer crash and after another I could not reload my previous version I had but I contacted Adobe and a tech was kind enough to help me find the problem. So my question because I understand that when you buy and download that you can use it on two computers if necessary. I am grateful for all someone could give me advice. Just one more question. I couldn't just burn the exe file. file to download Adobe on a CD or a DVD?

    Greg

    gwest479 wrote:

    I couldn't just burn the exe file. file to download Adobe on a CD or a DVD?

    Greg

    Yes, you can download the installation files and save them on a hard drive or disk.

  • How to save a copy of an element of the bookstore with a script?

    I created a library with 1 graphic.

    I can place this item as a copy (option only available in cc 2014) embeded, or link (new with cc 2015) - just right click and choose from the context menu.

    now, how can I make this script?

    with this small skeleton of the PDF reference access the library item in the current document = must therefore easy to place as copy...

    If (app.documents.length > 0) {}

    var fileReferences = new Array();

    var sourceDoc = app.activeDocument;

    sourceName = sourceDoc.name var;

    for (i = 0; i < sourceDoc.pageItems.length; i ++) {}

    artItem = sourceDoc.pageItems [i];

    Switch (artItem.typename) {}

    case 'PlacedItem ':

    fileReferences.push (artItem.file.fsName);

    break;

    }

    }

    Fred

    I do not receive text becoming described.

    but I get a stupid amount of traces of clipping.

    I hate most use traces of unnecessary clipping.

    I still don't know what you really want to do.

    But it may be closer...

    Start by dragging your library you want for your document items.

    This places them all in the form of links.

    Once you are happy, run this script.

    He will replace each element library linked with a copy.

    if ( app.documents.length > 0 ) {
        var sourceDoc = app.activeDocument, artItem, myAsset, pos = [];
        sourceDoc.selection = null;
        for (var i = sourceDoc.placedItems.length-1; i > -1; i-- ) {
            artItem = sourceDoc.placedItems[i];
            pos = [artItem.left,artItem.top];
            myAsset = File(artItem.file.fsName);
            app.openCloudLibraryAssetForEditing(myAsset,myAsset);
            app.executeMenuCommand ('selectall');
            app.executeMenuCommand ('copy');
            app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
            sourceDoc.activate();
            app.executeMenuCommand ('paste');
            app.executeMenuCommand ('group');
            sourceDoc.selection[0].position = pos;
            artItem.remove();
        }
    }
    

Maybe you are looking for