export text from textflow

I have a custom editor built in flash that I want to convert it to Text Layout Framework.

I have all content in containers, but when I do an export in XML format, I want to know what content is displayed in this container.

I tried to do it through al the textlines in the textflow. I can get all the textline objects, but cannot get the content and formatting information.

Could someone give me a hint on how to do this? Already, I'd be happy if I could make a separate export for each container.

Thanks for your response!

Arend.

You have a TLF TextFlow with several containers of connected, and you want to export each container as an independent TextFlow? If so, I suggest copying the text in each container in a separate TextFlow and then export the TextFlow resulting. You can browse the containers in the IFlowComposer and for each container, create a new TextFlow by calling deepCopy on it. I expect that the code could look like this:

var pos:int = 0;

for (var i: int = 0; i< textflow.flowcomposer.numcontrollers;="">

{

var controller: ContainerController = textFlow.flowComposer.getControllerAtIndex (i);

var newTextFlow:TextFlow = textFlow.deepCopy (pos, pos + controller.textLength);

var exportedXML:XML is TextFilter.export (newTextFlow, TextFilter.TEXT_LAYOUT_FORMAT, ConversionType.XML_TYPE);.

POS += controller.textLength;

}

This is coded memory and I have not compiled or tested, but it should give you an idea how to do it. If I misunderstood your question, please let me know.

-robin

Tags: Adobe Open Source

Similar Questions

  • How to get the text from TextFlow?

    Hello

    I want to extract (String) text from a TextFlow control.

    If you have an idea...

    Thanks in advance

    Fabrice.

    Ok thank you.

  • How to copy plain text from TextFlow?

    Hey guys, I got stuck on the operation of copy - paste Textflow, I want to copy text from a textflow, don't want any format/style of text, but InlineGraphics, how can I do this?

    After I deleted the TEXT_LAYOUT_FORMAT & TEXT_FIELD_HTML_FORMAT default, all right.

    TextConverter.removeFormat (TextConverter.TEXT_LAYOUT_FORMAT);

    TextConverter.removeFormat (TextConverter.TEXT_FIELD_HTML_FORMAT);

    Thank you once again!

  • Layout in Arabic, Chinese and Russian. Export text from a PDF file

    I am exhibitor of long documents in Arabic, Chinese and Russian. The text was provided in PDF format when I copy and paste this in Indesign, it happens like question marks, boxes and other characters having nothing to do with the text I'm trying to layout.  I put the cast on the Arabic Myriad and Arabic dictionary still nothing that resembles Arabic or any other language. Same thing with the Chinese and Russian. Any suggestions on how to get the text from the PDF file where is the language. Appreciate help with this.  Thank you.

    Thanks for the caption, Ellis

    Thus, KK: you're in for a world of pain. The intials "WP" at the beginning of these policies means that the text is out of WordPerfect. Make presentations multilingual in WP, it was annoying, but possible. It was developed in the pre-Unicode world where every single method of complex script layout was a dirty hack. If you like dirty nerdy details, I can tell you how it worked, but that it is sufficient to say that attempt to harvest the non-latine-script text of: WP and it reuse for use in InDesign is just pure pain. WordPerfect-specific code pages were never really supported anywhere outside WP.

    That being said, I have a script around laying somewhere for the conversion of the WP-Cyrillic in Unicode. (In fact, I think it does Windows CP 1251, but that works as well.) But this is only one of the forty-five languages? And the Chinese has been pixelated? And PDF files were originally generated by Distiller 3? If you have no choice, it is time to leave. If you do not have the choice, I really hope that you charge hourly. My experience in this area (very large) is that it will cost three to five times more to extract the text as it would for a professional translation generate a new key of the text, and and then to have a second professional translation review text rekeyed looking for typos.

    Russian OCR is darn good these days, but Chinese OCR is random. I've never seen good Arabic OCR - doesn't mean it's not out there, but I couldn't help you find it.  But the chances that all 45 languages available reliable OCR, and the result of said OCRing will not have to be reviewed by someone who knows the language, are virtually nil.

  • Possible to export text from Asset Manager (subitem names, times, notes, etc.)?

    I tried to understand this with nothing done, hope it's an easy question. .

    For some reason I ended up associate a lot of notes in all of the sub-elements I generated so I would be able to export all text and I can import into a database (for example. Excel, Access..)

    that is, a select-all, copy, paste equivalent with all of the text that is displayed in the Asset Manager window (circled in the screenshot).

    Thanks for any help on this!

    -Mike

    Premiere.jpg

    I don't know any way to do it.

  • Does anyone have a good experience, export data from cubesavvy?

    Merry Christmas / Happy holidays everyone.

    Does anyone have a good experience, export data from ASO using cubesavvy?

    I tried but the filters don't seem to work.  I entered about 9 filters - with the members and parents to 9 dimensions.  However, the native text file that it created does not seem to use these filters.  I select 'Member = FY15' but it has exported the native file, had FY12.  I think this tool takes the native text file it generates and create a report of the column from it.

    http://www.cubesavvy.com/parse-ASO-export-to-columns/

    We use it because our financial report and the Smartview crashes when we tried to explore the zero level for Dept (we have more than 5 thousand), projects (more than 5,000) and accounts (more than 200).  It looks like a simple report.  Our report EN used to support 20 minutes now it crashes.  We must perhaps compact contour and use the motion tracking.

    R,

    David

    Hi David,

    Harry Gates here, the developer of cubeSavvy. Dozens of people successfully using the export ASO Analyzer feature, with and without filters. This includes a few very large companies with big data and the large contours (100s of exports of GBs and hundreds of thousands of members). If the filters are not limit the written lines, it has been my experience that the names of typical members in do not match those of the file.

    You can reach me at [email protected] if you have any other questions. You can also send me your otl and export, if they are not too sensitive and I'll take a look.

    Kind regards

    Harry

  • JPG export text as outlines?

    Hi guys,.

    I try to export as JPG and CMYK file and it will always results as an Illustrator and expose the text without filling.

    original file

    http://www.pixentral.com/show.php?picture=1EQLksieEsVQdt7A2dJGcvWGJYuTo0

    exported file

    http://www.pixentral.com/show.php?picture=1aIZxr8BKZbyN2PTCmTAXEnlhS8YQ

    Here is my export settings

    http://www.pixentral.com/show.php?picture=1hkuyAgB1eRGUiuDToD6m9w3HFKdbD

    I changed to a different output, but nothing will change.

    Finally, I saved the file as a PDF and then exported in JPG file but the resolution is not very good, I want to be able to export directly from here where I have more settings.

    Any ideas how can I solve this problem?

    Thank you!

    Check the attribute Panel, if the s text fill set to overprint.

  • Is there a way to extract all the text from the captivate course?

    Hi all, someone can tell me if there is a way to extract all the text from a captivate file? We need to convert all the texts on the audio screen and insert audio into each slide... Thank you for all the input.

    Hello

    Try clicking on file > export > project captions and subtitles. Who should produce a Microsoft Word document.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • How to insert text from another software?

    In Photoshop, I need a text with a particular font, which does not have Photoshop. However, I can do in Word, that has this policy. The question is: how to transfer (or export) this text from Word to Photoshop?

    If you have two Photoshop & word on the same machine, there could be a problem with the font or the font you are looking for is at the bottom of the list of the fonts because of an incorrect header. To make you scroll all the way to the bottom of the list of fonts to see if she was placed in a different category?

  • Export data from the database to excel file using the procedure

    Hello

    I need to export data from database to oracle 10 g for the excel file, I try this code:

    First, I create directory to the user sys and give permition to user that I'm working on it
    create or replace directory PALPROV_REPORTS as 'c:\temp';
    
    grant read, write on directory PALPROV_REPORTS to user12 ;
    then I run this code
    declare
        output utl_file.file_type;
    begin
        output := utl_file.fopen( 'user12' , 'emp1.slk', 'w',32000 );
        utl_file.put_line(output, 'line one: some text');
        utl_file.fclose( output );
    end;
    the problem appears as
    ORA-29280: invalid path ORA-06512: at "SYS." UTL_FILE", line 29 ORA-06512: at"SYS." UTL_FILE", line 448 ORA-06512: at line 4

    Notice that I use the operating system windows as a client and a linux as a server database

    The file will be written to the database server or your GNU / linux and I'm quite sure, there is no folder named "c:\temp" on linux. It will probably be ' / tmp' on a unix server.

    And open the file, you must give the name logic directory 'PALPROV_REPORTS' it instead of the user name "utilisateur12".

  • How can I transfer my texts from my iPhone to my MacBook?

    How can I transfer my texts from my iPhone to my MacBook?

    Hello Harelug,

    Thank you for using communities of Apple Support.

    From your post, I understand that you want to transfer your text messages from your iPhone to your MacBook Pro. I know how it is important to keep a copy of your messages. Currently, there is not a method to transfer your messages to your MacBook Pro from your iPhone. You can, however, set of continuity that will allow your messages will appear on your Mac in the future. This article has measures to implement continuity:

    Continuity of use to connect your iPhone, iPad, iPod touch and Mac

    For messages specifically follow these steps:

    SMS

    With continuity, all SMS and MMS text messages that you send and receive on your iPhone may also appear on your Mac, iPad, and iPod touch. You can also meet your contacts from any device is closer to you, including your iPad or Mac.

    You can start a conversation in the Messages application or click on a phone number in Safari, Contacts, or calendar.

    Set up SMS and MMS with continuity

    1. You need to iOS 8 or later version on your device iOS and OS X Yosemite or later version on your Mac.
    2. Connect to the iMessage with the same Apple ID on your iPhone, your other iOS devicesand your Mac.
    3. On your iPhone, go to settings > Messages > Send and receive. Add a control to both your phone number and email address. Then go to settings > Messages > text Message Forwarding and activate the device or devices that you want to transfer the messages.
    4. Looking for a code on the Mac, iPad, or iPod touch that you enabled. Then enter this code to check on your iPhone.

    See you soon

  • Can I select and copy and paste text from a browser with the pencil of Apple?

    With the pencil of Apple on a new iPad Pro, I am not able to select, copy and paste text from a web page in Chrome or Safari. Y at - it a special order? A related question (not with a pencil): how to save files in PDF format.

    Well, it seems to be workin now. Never mind.

  • Firefox 8, cannot copy text from any website

    When I select and right click to copy text from any Web site in firefox8, I have a large white screen. I had no problem until I upgraded to 8.

    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) > Add-ons > appearance/themes).

  • I can't find the bookmarks organize and/or export bookmarks from Safari with Firefox 4

    I can't find the bookmarks organize and/or export bookmarks from Safari with Firefox 4. View that all bookmarks does not help.

    Among the small icons - rightmost - in "show all bookmarks" is an import-export. Place your cursor on them and it will say what it is.

  • How to export images from Photos to another (not mine) Facebook profile?

    product name: MacBook pro retina 15 "

    Software: Photos V1.3

    Operating system: OS X El Capitan 10.11.3

    I can export photo from the photo software on my Facebook page, but is there a solution to export pictures to a page of a Facebook friend directly from Photo software?

    Export photos to a folder on the desktop, and from there to the Facebook of your choice.

Maybe you are looking for