Export all text

Hello All,
I would like to export all text with the TextExportPreferences as
.CharacterSet = idTextExportCharacterSet.idUnicode
.Platform = idImportPlatform.idPC
to test.txt file for active indesign file.
Can you please suggest the vbscript for this?
I have the part of it as ....the second part which will iterate through all text ....
Rem TextExportPreferences.vbs
Rem An InDesign CS3 VBScript
Rem
Rem Sets the text export filter preferences.
Rem
Set myInDesign = CreateObject("InDesign.Application.CS3")
With myInDesign.TextExportPreferences
    Rem Options for characterSet:
    Rem idTextExportCharacterSet.idUnicode
    Rem idTextExportCharacterSet.idDefaultPlatform
    .CharacterSet = idTextExportCharacterSet.idUnicode
    Rem platform options:
    Rem idImportPlatform.idMacintosh
    Rem idImportPlatform.idPC
    .Platform = idImportPlatform.idPC
End With
Thanks,
Shail

Paul,
I'm the moderator here, and your response, in my opinion, was out of line. Daniel is a long-time vounteer here, and I see no evidence to suggest anything in your accusations.
In fact I would say your first post, made some rather egregious presumptions that your problem and that of harooki2 were the same, all evidence to the contrary. In his case he said that the type was visible in overprint preview, which categorically eliminates the possibility that it was set to non-printing in the attibutes panel. Though he might have phrased it better, Daniel was suggesting that had you followed the suggestion  to check overprint preview and reported that the text (or whatever) disappeared, the first suggestion that any of us here would have made would be to check the attributes for non-printing. In fact, that's precisely why he suggested that check in the first response to this thread, to eliminate that as a possibility and quickly establish how complex the problem is.

Similar Messages

  • Script for export all text in single rtf file?

    Hi!
    I need to export all storys from indd document to a single rtf file. Is there avaible some free script for CS4 which can do that?

    if(app.documents.length != 0){
         if(app.documents.item(0).stories.length != 0){
              myGetFileName(app.documents.item(0).name);
    //========================= FUNCTIONS ===========================
    function myGetFileName(myDocumentName){
         var myFilePath = File.saveDialog("Save Exported File As:");
         if(myFilePath != null){
              myDisplayDialog(myDocumentName, myFilePath);
    function myDisplayDialog(myDocumentName, myFilePath){
         //Need to get export format, story separator.
         var myExportFormats = ["Text Only", "Tagged Text", "RTF"];
         var myDialog = app.dialogs.add({name:"ExportAllStories"});
         with(myDialog.dialogColumns.add()){
              with(dialogRows.add()){
                   with(dialogColumns.add()){
                        var myExportFormatDropdown = dropdowns.add({stringList:myExportFormats, selectedIndex:0});
              with(dialogRows.add()){
                   var myAddSeparatorCheckbox = checkboxControls.add({staticLabel:"Add separator line", checkedState:true});
         var myResult = myDialog.show();
         if(myResult == true){
              var myExportFormat = myExportFormats[myExportFormatDropdown.selectedIndex];
              var myAddSeparator = myAddSeparatorCheckbox.checkedState;
              myDialog.destroy();
              myExportAllText(myDocumentName, myFilePath, myExportFormat, myAddSeparator);
         else{
              myDialog.destroy();
    function myExportAllText(myDocumentName, myFilePath, myExportFormat, myAddSeparator){
         var myPage, myStory;
         var myExportedStories = [];
         var myTempFolder = Folder.temp;
         var myTempFile = File(myTempFolder + "/tempTextFile.txt");
         var myNewDocument = app.documents.add();
         var myDocument = app.documents.item(myDocumentName);
         var myTextFrame = myNewDocument.pages.item(0).textFrames.add({geometricBounds:myGetBounds(myNewDocument, myNewDocument.pages.item(0))});
         var myNewStory = myTextFrame.parentStory;
         for (var i = 0; i < myDocument.pages.length; i++) {
              myPage = myDocument.pages.item(i);
              for (var t = 0; t < myPage.textFrames.length; t++){
                   myStory = myPage.textFrames[t].parentStory;
                   if (!IsInArray(myStory.id, myExportedStories)) {
                        //Export the story as tagged text.
                        myStory.exportFile(ExportFormat.taggedText, myTempFile);
                        myExportedStories.push(myStory.id);
                        //Import (place) the file at the end of the temporary story.
                        myNewStory.insertionPoints.item(-1).place(myTempFile);
                        //If the imported text did not end with a return, enter a return
                        //to keep the stories from running together.
                        if(i != myDocument.stories.length -1){
                             if(myNewStory.characters.item(-1).contents != "\r"){
                                  myNewStory.insertionPoints.item(-1).contents = "\r";
                             if(myAddSeparator == true){
                                  myNewStory.insertionPoints.item(-1).contents = "----------------------------------------\r";
                   } // if not exported
              } // for text frames
         } // for pages
         switch(myExportFormat){
              case "Text Only":
                   myFormat = ExportFormat.textType;
                   myExtension = ".txt"
                   break;
              case "RTF":
                   myFormat = ExportFormat.RTF;
                   myExtension = ".rtf"
                   break;
              case "Tagged Text":
                   myFormat = ExportFormat.taggedText;
                   myExtension = ".txt"
                   break;
         myNewStory.exportFile(myFormat, File(myFilePath));
         myNewDocument.close(SaveOptions.no);
         myTempFile.remove();
    function myGetBounds(myDocument, myPage){
         var myPageWidth = myDocument.documentPreferences.pageWidth;
         var myPageHeight = myDocument.documentPreferences.pageHeight
         if(myPage.side == PageSideOptions.leftHand){
              var myX2 = myPage.marginPreferences.left;
              var myX1 = myPage.marginPreferences.right;
         else{
              var myX1 = myPage.marginPreferences.left;
              var myX2 = myPage.marginPreferences.right;
         var myY1 = myPage.marginPreferences.top;
         var myX2 = myPageWidth - myX2;
         var myY2 = myPageHeight - myPage.marginPreferences.bottom;
         return [myY1, myX1, myY2, myX2];
    function IsInArray(myString, myArray) {
         for (x in myArray) {
              if (myString == myArray[x]) {
                   return true;
         return false;
    This is a revised version of the script --  not totally tested.
    Kasyan

  • Can I copy/export all text formatted with a given style?

    I have a multi document book, which includes nearly a hundred references to web pages. Each of these is formatted with a character style. The author has not asked me if I can give him a list of all of those references. Is there any way to pull out all text using that character style, and either copy or export it? I already have a TOC and index, but if there is a way to force character styles into either of these, I could do this on a clone just to get the data.
    Failing that, is anyone aware of a way to do this in the resulting PDF or EPUB file?
    (I'm in CS5, by the way!)

    I have a multi document book, which includes nearly a hundred references to web pages. Each of these is formatted with a character style. The author has not asked me if I can give him a list of all of those references. Is there any way to pull out all text using that character style, and either copy or export it? I already have a TOC and index, but if there is a way to force character styles into either of these, I could do this on a clone just to get the data.
    Failing that, is anyone aware of a way to do this in the resulting PDF or EPUB file?
    (I'm in CS5, by the way!)

  • I want to export all the screen text in a long video to a text doc

    I want to export all the screen text in a long video to a text document. Is there a way to do that without copying and pasting each item?

    Fortunately, I still have the project ready at hand, so I can cut and paste each text window from there, but I do admire the creativity of your approach. I thought about making the desired document as a collection of still images without the video track removed, but I decided that would be too cumbersome for this purpose.
    It still seems to me that there ought to be a way to access the text resident in FCP and turn it into a text file, but maybe this will have to written into the program as a feature. Probably, it would not be a high priority among all the other tasks on the wish list.
    Thanks for your help. If I learn something interesting, I will post it for the benefit of others who might want do what I want to do now. Off I go now to cut and paste!

  • Is there a function or an addon that allows to export all highlighted text in a document to another document (to create summaries)?

    It would be very usefull to be able to export all highlighted text in a document at once

    There's a built-in function in Acrobat to create a comment summary (Comments - Comments List - Options - Create Comments Summary).

  • Is there any way to export all of my parameters to a text file at once?

    I need my parameter for another report and i don't wan tot create same parameter again, i can export and import the parameters one by one but there are many parameter and i don't want to do this procedure for each of my parameter separately!
    My question is, is there any way to export all of my parameters to a text file at once?
    Thank you

    hi, Jamie Wiseman
    I think my question wasn't clear.
    what i am asking for i want to copy parameters itself as parameter to another report , not just parameter field name.
    I put some picture about where i want please check attached.
    As you see there is export function inside of export but i dont want to do this procedure of each of my parameters , i want to export them at once.
    SO do you have any idea for this

  • How to export all images that don't contain editable text

    Hi guys,
    Is there any hack, script or general function to export all images from a PDF withouth them containing editable text?
    For instance, i have a pdf that contains some scanned documents - these need exporting, i also have some tables in there that have editable text in them - these are being exported when i select export all images.
    Can anyone help?
    Cheers!

    Search for a word or words in them as a group. Search for .pdf file type and containing....
    Use a common word that they all might contain such as "a" or "the", etc.
    The files that have been OCR'd will show up in the search. This won't catch 100% of them, but it will allow you to separate most of them.

  • Export to Text failing when Report height is more than 23 inches

    I have a problem while exporting to Text, when report height is more than 23 inches. It's failing with "an unhandled exception occurred in crw32.exe [3856]"
    Both Crystal Reports 2008 and Crystal Reports XI Release 2 are failing. Export to PDF is working fine.
    I am trying to design a lengthy report and export to text.
    I searched in forum with out any results.
    It would be great, if some body can point me in right direction. Thank you.
    Regards,
    Raveendra

    Hi Raveendra
    To work around this error message, disable DEP by performing the following steps:
    1. Click Start > Settings > Control Panel.
    2. Double-click 'System'. The "System Properties" dialog box appears.
    3. Click the 'Advanced' tab.
    4. Click 'settings' under 'performance'.
    5. Click the 'Data Execution Prevention' tab
    6. Select 'Turn on DEP for all programs and services except those I select:'.
    7. Click 'Add'.
    8. Browse for the application CRW32.exe. This file is located in:
    C:\Program Files\Business Objects\Crystal Reports 12\
    9. Select CRW32.exe and click 'Apply'.
    10. Click 'OK' to close the 'System Properties' dialog box.
    11. Log on as an Administrator and start Crystal Reports.
    Now try to export report to the text format and observe the behavior.
    Regards
    Girish Bhosale

  • How do I do Export to Text? Using JSP

    Hi All,
    I need your help for doing Export to Text functionality.
    If I hit on "Export to Text" link, the file dialog will be open and I save the data.
    Is this possible through response?
    like response.setHeader("Content-type","application/text");
    If not possible through response then give me a another solution
    Thanks
    Amit

    http://forum.java.sun.com/thread.jspa?threadID=5199777&messageID=9792760#9792760

  • Crystal Report 2008 export to text problem

    Hello,
    I am using Crystal Reports 2008 for generating reports in our WPF application. In this application, we are exporting the report to txt file on a button click. Now the application contains a form called u2018Print Manageru2019, through which the user can print the exported report(text files). Now the issue, when we try to the any of the exported report file through the application, the printer leaves alternate blank pages. The printer used in this case is DOT MATRIX EPSON LQ-1150II ESC/P2. We even tried printing the text file on HP Laser jet 4600, but the same issue is faced.
    Also, please note that when I try to read the exported txt file, a formfeed(u2018\fu2019 page break) character  can be seen  at the place where the printer leaves a blank page. Hence, my concern is, Is there any property of crystal report that I am missing on or is this a printer driver issue? But if it would have been a driver issue, then changing the printer might have solved the issue.
    I also  tried  doing u2018Keep Togetheru2019 property = false of all the sections of the report. Also, I found that the u2018New Page Afteru2019 property = true and disabled for the u2018Page Footeru2019 section. So I set u2018New Page Afteru2019 property = false programmatically as
    rdTest.ReportDefinition.Sections["Section5"].SectionFormat.EnableNewPageAfter = false;
    but no luck.
    If anyone has faced similar problem or have any clues, please help!
    Any kind of help in solving this issue will be highly appreciated.
    Thanks in anticipation!

    Good morning.
    We've got something to get straight first
    When you say "...from the Report Viewer. The report printed as expected on HP printer...", do you mean the viewer of the .NET app, or the viewer of the CR designer?
    And version 12.0.0.683, is very old (well as far as CR is concerned anyhow   ). That version is SP 1, we are now on SP 2. So that will be the place to start. Get to SP 2 which can be downloaded from here;
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Ludek

  • How can I export to Text and/or CSV format and get correct page info?

    I am using CRVS2010 to upgrade an application from CRXI RDC to .Net.  When at runtime I generate the report and export to Text or CharacterSeparatedValues my page footers show Page -1 of 1.  Using the CRXI RDC, I see the correct page info in the footers.
    When I export to Text, I get the Page -1 of 1 for every page.  If I set LinesPerPage to zero, then I get it all on one page, which still has Page -1 of 1 at the end.
    If I export to CSV, I get Page -1 of 1 for every line.  If I use the viewer to review the report at runtime, and export from there, I cannot export as Text so I have no comparison.  However, the Export to CSV from the Viewer as Page -1 of 1for every entry just as my export does.
    What do I need to do to get the correct line info?  What is that is different from CRXI RDC and CRVS2010 .net that would impact this behavior?

    Yes, I am using SP2 for VS 2010 and I'm using the Page N of M formula in the page footer.  While my export code was not quite as simple as yours, I did it both ways in my test program with the same results.  A one page report whose footer says Page -1 of 1.
    Here's the relative code snippet:
    #if 0
        CrystalDecisions::Shared::ExportOptions ^exportOptions = gcnew CrystalDecisions::Shared::ExportOptions();
        exportOptions->ExportDestinationType = CrystalDecisions::Shared::ExportDestinationType::DiskFile;
        exportOptions->ExportFormatType = CrystalDecisions::Shared::ExportFormatType::Text;
        TextFormatOptions ^textFormatOptions = exportOptions->CreateTextFormatOptions();
        textFormatOptions->LinesPerPage = 0;
        textFormatOptions->CharactersPerInch = 11;
        exportOptions->FormatOptions = textFormatOptions;
         CrystalDecisions::Shared::DiskFileDestinationOptions ^diskFileDestinationOptions = exportOptions->CreateDiskFileDestinationOptions();
         diskFileDestinationOptions->DiskFileName = gcnew System::String("c:\temp\test.txt");
         exportOptions->DestinationOptions = diskFileDestinationOptions;
        thisReport.Export(exportOptions);
    #else
        thisReport.ExportToDisk(CrystalDecisions::Shared::ExportFormatType::Text, gcnew System::String("c:\temp\test.txt"));
    #endif
    Edited by: nlDevotie on Jan 9, 2012 11:59 PM

  • Unable to Export to Text when using Enterpirse

    Post Author: dmface15
    CA Forum: Exporting
    I created a report in Developer and have the ability to export the report to a text file. However, when i saved to report to Crystal Server and run it I do not have the option to export to text. What is the difference and why the limitation?

    Usually your cd-burning-software should be able to show you if it supports CDText or not (for example Nero has it's own info-tool that informs you about all features of your drive).
    But if your drive is only one year old it really should support CDText.
      Windows XP   iPod mini 2nd gen.

  • Export to text and chr(13)||chr(10)

    Hi All,
    I have report (10g) and one column that formatted by PL/SQL to have multiply rows in it. This achieved by adding chr(13)||chr(10) to the row, so I have multiply rows result on report output.
    But when the same report is exported to text file, then chr(13)||chr(10) are ignored and result is one long row instead multi-rows…
    Is the way to overcome such result in export?
    Thank you.
    Edited by: user555411 on Nov 10, 2008 8:02 AM

    You can get multiple lines by using repeating frames. That's on the line level.
    On the field level, for example, if you have a varchar2 field containing string with 50 characters, but want to display in two lines, you can add a field in report layout that is not long enough for 50 char, but make the length of the box vertically variable in Property Palette. So when there is not enough space to show the whole string, it will go to next line.
    You can try this if inserting chr(13) or chr(10) can't do what you want.

  • Is there a way to excerpt all texts from the captivate course?

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

    Hi there
    Try clicking File > Export > Project Captions and Closed Captions. That should produce a Microsoft Word document.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to export the text edit data to excel file without splitting the data in excel file?

    how to export the text edit data to excel file without splitting the data in excel file?
    I have a requirement in SAP HR where in the appraiser can add comments in the area given and can export that to excel file. Currently the file is getting exported but the comments getting split into deifferent rows.
    I want the entire comment to be fit in one row.
    Please help.
    Thank you

    Hi,
    if your text edit value is stored in 'lv_string' variable.
    then before exporting the value to excel you have to remove CL_ABAP_CHAR_UTILITIES=>NEWLINE
    that is '#' from the variable lv_string.
    for that use code some thing like this.
    REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>NEWLINE in lv_string WITH space.
    I think this will do the trick.

Maybe you are looking for

  • Samba on Linux & Windows

    Hi all, I want to mount my Windows c:\ drive on my Linux server using samba. Do I need to install samba on both the linux and windows server? Thank you very much, in advance.

  • H.264, distribution only?

    I am working with clients who need videos sent to them in H.264 codec. I have read that this is distribution only and not used for editing. so does this mean that you cannot set Final Cut to capture with this codec, since it seems to be only for expo

  • 8830 and mac sync

    I have a verizon 8830 and cannot sync it with my macbook.  I've already tried downloading the newest pocketmac from the website, but I'm still having trouble.  is it possible? how?  I'd like it to work with my Entourage.  Any help would be greatly ap

  • Looking for some automatic phone dialing software

    I am looking for some software or an app that will dial phone numbers automatically and can be set to a timer. Is there anything out there that will dial numbers at a specific set time automatically? Anything out there for free?

  • Error 69 when syncing the movie Twilight

    I keep getting "unknown error occurred -69" when I try to sync the movie "Twilight" to my and my husbands nano's. I can sync other movies without this error. Is the movie corrupted, if so, how can I get a new one (yes, apple support that is a questio