Indesign export text as rtf with links

Hi,
I have an indesign file with lot of math type equation are EPS as in links.
Now I want extract the indesign file as rtf format. I know math type is not directly support the indesign. So I want to get the links name and delete the links from the indesign document. My script is getting the link name. I don’t know how to delete the links and place the link name the relevant position.
my script is:
for(var myLinkCounter = app.activeDocument.links.length -1 ; myLinkCounter > 0; myLinkCounter --)
    myLink = app.activeDocument.links.item(myLinkCounter);
            myLinkName=myLink.name;
            //alert(myLinkName);
                if (myLinkName.indexOf("Eqn"))
Please help me for further............
Thanks
M. Karthikeyan

Hi Karthik,
Please try the below JS code, i hope you expected this!
var myDoc = app.activeDocument;
var myLink = myDoc.links;
for (i=myLink.length-1; i>=0; i--){     
     var myLinkitem = myLink[i];
     var myname = myLink[i].name;
     app.select(myLinkitem.parent);
     var mySel = app.selection[0];
     app.select(mySel.parent);
     mySel.remove();
     app.selection[0].contentType = ContentType.TEXT_TYPE;
     app.selection[0].contents = myname;
     //app.selection[0].fit(FitOptions.FRAME_TO_CONTENT);
thx
csm_phil

Similar Messages

  • AIR Exporting text into .rtf or .doc formats

    Hi
    I am developing an AIR application witch is similar to MS word or some other text editor . Problem is I need to implement a feature for exporting and importing text to .rtf .txt and .doc formats the editor can contains graphic elements too . please suggest me how do I done this.
    Thanks
    osurikiran

    Try this (in SQL*Plus)
    exec ctx_ddl.drop_policy ('mypol')
    exec ctx_ddl.create_policy ('mypol', 'ctxsys.auto_filter' )
    variable clobtofilter clob
    variable filteroutput clob
    begin
      :clobtofilter := '{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset238 CorporateSLight;}}
    \viewkind4\uc1\pard\lang1050\f0\fs24\ This is
    \par regular rtf file
    \par spanning
    \par several
    \par lines...
    \par The End
    \par }';
    dbms_lob.createtemporary( :filteroutput, true );
    ctx_doc.policy_filter ('mypol', :clobtofilter, :filteroutput, true );
    end;
    set long 500000
    print filteroutput

  • InDesign export Text Layout Framework Markup

    hi there
    as described in title, i'm having troubles exporting an InDesign comp in a decent way
    my quesitons are:
    1 - It exists a DTD for Text Layout Framework Markup Language ?
    2 - Is there an export module that make me able to do it automatically? because tagging all the elements is a pain, and there is just a little documentation about the markup language
    If not, are there any plans to do it?
    I personally think that an export module will be very helpful and will score another goal on products' integration
    Thanx for your time

    Regarding a DTD see this post http://forums.adobe.com/message/2221283#2221283
    I can't comment on any plans for ID to export TLF markup.  Definitely a good idea.
    Thanks,
    Richard

  • Urgent Indesign exporting problem coming up with warning

    Hello,
    I have been trying to export my indesign document to a PDF but it comes up with a warning saying " The preset specifies source profiles that dont match the current colour settings file. Profiles specified by the colour settings file will be used"
    I have also changed to it RGB instead of CMYK could that be the problem??/

    mharraz378 wrote:
    I have also changed to it RGB instead of CMYK could that be the problem??/
    Maybe, but I often see this warning even in CMYK. It's not a fatal error and nothing to worry about. You actually want to be using the profiles you specified, so it's a good thing.

  • Search text on RTF with lingo

    dear all ...
    can help me?..
    I make glossary with RTF text because on RTF Text is easy to change content but can help me to make search text or word on RTF text with lingo..?
    Thankyou

    Changing the BG colour of a chunk of text is not easy. It can be done with some imaging-lingo hoop-jumping, or by having a pool of shape sprites that can be dynamically allocated, sized and positioned.
    Place the following in a JavaScript typed #movie script:
    function jsSearch (aString, aMatch) {
      var aPattern = new RegExp(aMatch, "gi");
      var found;
      var results = list();
      while((found = aPattern.exec(aString)) != null) {
        results.append(found.index);
      return results;
    and this in a "regular" Lingo #movie script:
    on mHighlightMatches aMember, aString
      -- error check inputs
      if ilk(aMember, #member) = 0 then
        aMember = member(aMember)
        if ilk(aMember, #member) = 0 then
          exit
        end if
      end if
      if stringP(aString) = 0 then aString = string(aString)
      if stringP(aString) = 0 then exit
      -- will only work with #text nmembers
      if (aMember.type <> #text) then exit
      aMember.color = rgb(0, 0, 0)
      len = length(aString)
      lMatchPositions = jsSearch(aMember.text, aString)
      if count(lMatchPositions) = 0 then
        alert "Search text not found"
      else
        repeat with aStart in lMatchPositions
          aMember.char[aStart..(aStart + len)].color = rgb(255, 255, 0)
        end repeat
      end if
    end
    and now your button script might look like:
    on mouseUp me
      mHightlightMatches(member("text2"), member("text1").text)
    end

  • Export pdf to rtf with columns

    When I export a PDF with columns to an .rtf file, the columns don't show up. Is there a way to set that up easily?

    Hi ostarella,
    Have you tried disabling OCR (optical character recognition)? Doing so can help retain formatting when you use ExportPDF. For instructions, see How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel.
    Please let us know if solves the problem.
    Best,
    Sara

  • AE CS5 render/export text to PS with transparent background for web?

    I am sure that this question has been asked and answered one hundread times already, but i can't seem to find the answer.I have tried googling and searching these forums, perhaps i just have the wrong search peramiters.
    I am trying to create and animate text via AE CS5 for a web site.I then want to use that in Photoshop CS5. I can't seem to find this option. I know that in the past you were supposed to render the text as a movie of sorts, but now i am just lost and confused on what to do.
    If the answer is just too long to post here, could someone please post a link to a tutorial/answer?
    I assume the answer will be a little different from CS4 to Cs5.
    Thanks.

    Well now that you have told me to save with some sort of an alpha channel, it works perfectly.
    In CS5:
    Select layer,"Composition,Make movie". Then navigate to "Output module" and choose an option that has "alpha channel" in the title.Choose a name for your project "Output to". I now use "lossless alpha".I don't know if that is the best one, but it seems to be working fine.
    There is no "Quicktime" option in CS5 as in older versions of AE.
    I was trying to save as a video in general or for photoshop and that just wasn't working out well.
    I don't know what the "Frames to Layers import assistant" is that you mentioned though. I still tend to drag and drop, rather then import.
    Thanks for your help.

  • Unicode Export Preference for RTF

    Hi,
    I am exporting text in rtf format via javascript. How to set the rtf export preference to unicode?
    For eg in text we do
    with(app.textExportPreferences){
        //Options for characterSet: TextExportCharacterSet
        characterSet = TextExportCharacterSet.UTF16;
    What is the equivalent for rtf?
    Regards

    Good news! There is no such option for RTF because you do not need it!
    I was thinking, "If one can't change it then what does happen to non-ASCII characters? Maybe I could do a little testing?" And hey! it worked!

  • Exporting text from fcp

    I have a lot of separate text boxes in my sequence. Since I can' t do a spell check in fcp, I was wondering if i can export all the text boxes out as a plain text document to do a spell check.
    I tried exporting as a xml document, but navigating through all the tags was quite a problem.
    TIA for any suggestions.

    Usual workflow is following.
    1. Put all Text-generator clips to one track
    2. Export sequence to XML
    3. Launch TitleExchange, point to exported XML and say where to put converted file.
    Exporting to STL you'll get text file like that
    +00:01:27:26 ,00:01:29:26 ,They had this idea that+
    +00:01:29:30 ,00:01:30:31 ,behind scary+
    ... which you can open in any spell-checker.
    We use TitleExchange to bring subtitles from FCP to DVD Studio and back (in case we need subtitled DVD and Betacam output)
    Though, this may be much expensive way of checking spelling (135 Euro per TE licence).
    There are lots of subtitle software, I only wanted to mention a way of exporting text from FCP with help of subtitle processors.

  • Exporting text from existing InDesign file

    I am new to InDesign and have to create some documents.  I am working off of an existing file left by me by a co-worker who is no longer available to reach out to.  I would like to export the text from that document and have it as as Word file, Wordperfect, text, Rtf, etc. (something in which someone could edit that text.  How could I do that?

    Hi steve I thought all his text frames were linked. What you said is correct, I agree with that. If the text boxes are not linked I'm also using the script only.
    In CS4 the script is located in:
    windows>Automation>Scripts>samples>javascript>ExportAllStories.jsx

  • InDesign CS5.5 won't import docx/Word2010 with linked images.

    Hi,
    Maybe somebody knows what is going out
    I have WORD 2010 document with LINKED MathType equations saved as EPS files.
    In WORD 2010 they are LINKED or LINKED AND EMBEDED - but when I try to import this DOCX file into InDesign CS5.5 - images are missing.
    Only EMBEDED images are imported/visible - but of course not linked.
    I hope somebody can tell me if this is WORD or InDesign problem and how to fix this.
    DOC file saved from WORD 2000 - imports perfectly fine - all EPS equations linked in WORD are perfectly visible and still linked in InDesign CS 5.5.
    thx

    Peter Spier wrote:
    Hi Robert, we haven't seen you here for a while. Welcome back.
    Thx
    I know Jongware complains bitterly that Word import can be really flakey. Did you try daving as plain .doc, too? Seems like MathType equations are also the subject of a fair number of posts, too, but I'm not sure they are really a similar problem. I don't suppose there's any way for you to convert the eqations to .ai or PDF and still use them as links in Word, or to embed rather than link?
    I'm working on big tool to automatic mass processing big number of Word files. One of the steps is to prepare Word files with MathType equations for further manual processing. I have a macro (for Word2010) to automatically  export all equations to EPS files. The next step is to reImport EPS files back to Word - so they will be imported into InDesign as linked files and then they could be automatically correctly positioned withing the text.
    The problem is - I've done reImport step in Word2000 - as 2nd macro - and it works perfectly fine for DOC files saved from Word2000.
    Of course I can do this in InDesign - but I think it would be faster in Word.
    I think missing import of the linked files for DOCX files is a BIG bug ...

  • When you create a link to a web page in numbers and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem? Thank yo

    When you create a link to a web page in numbers "Mavericks" and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text (with Cmd-K) in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem?
    Thank you.

    Hi again Raja!
    I did as you recommended and installed HTTPWatch and below is the outcome of that program. It is the exact string with the only exception of obfuscated servernames and portnumbers. The last part that begins with "sap_ep_baseurl=" makes me suspicious, is that part really correct? It looks like it's lacking things.
    Best regards
    Benny
    http://<server:port>/sap/bc/bsp/sap/Z_PURCHASE_REQ/process.htm?
    sap-syscmd=nocookie&sap-client=200&sap-language=sv&style_sheet=
    http%3A%2F%2F<server>%3A<port>%2Firj%2Fportalapps%2F
    com.sap.portal.design.portaldesigndata%2Fthemes%2Fportal%2Fsap_tradeshow%2F
    controls%2Fcontrols_ie6.css%3F7.0.10.0.0&sap-cssversion=7.0.10.0.0&sap-tray-type
    =null&sap-tray-padding=null&sap-accessibility=&sap-ep-version=7.00.200611091758&
    sap_ep_version=7.00.200611091758&sap_ep_baseurl=http%3A%2F%2F
    <server>%3A<port>%2Firj%2Fportal&matnr=9780198603641

  • Combine text layers but keep text editable?  OR  A way to export text as a paragraph in InDesign into Photoshop

    Hoping to achieve one of these goals, either option is equally fine:
    Option 1) find a way to merge text layers but keep the text editable in Photoshop.
    Option 2) find a way in InDesign to group and collapse text so that it lands on one layer or one text paragraph that could be selected together.  So that when I export to EPS and then PSD the text is not sliced up on various layers but is combined into one editable text layer.
    Why?  I'm saving out from InDesign and for whatever reason the text is fragmented across many objects/layers/ whatever you want to call it.  When using the export feature from InDesign these bits of text are then saved out as separate layers when you export to EPS.  Using Illustrator with the EPS files is no help either. 
    The best way I can describe it is like in these InDesign document there are web page slices being used and various bits of the text are landing on various slices which in turn befuddles the export function that is valiantly trying to maintain these 'slices' of text by fragmenting letters, words, or characters across many 'slices' into many layers.
    Here's what the document looks like when I go from InDesign> export> EPS>  then open in Illustrator and export to PSD.
    What I want is all of those individual text layers to be one text layer, still editable, in Photoshop. 

    http://www.automatication.com/index.php?id=13
    Bob

  • Exporting Text as InDesign Tagged Text in CS3

    Hello All,
    I am facing a problem exporting the Text from InDesign Document as InDesign Tagged Text. It use to work properly in CS2. But in CS3 the IExportProvider interface CanExportThisFormat() always returns false for the format name "Indesign Tagged Text".
    InterfacePtr<IPMStream>filetream(StreamUtil::CreateFileStreamWriteLazy(sysfile));
    iiExportProvider->ExportToStream(filetream, doc, iselMgr, formatNameOfInterest, kSuppressUI);
    If the CanExportThisFormat() function is ignored and directly tried to export with the above ExportToStream() function it still fails to export into stream.
    Has the way to export the InDesign Tagged Text been changed in CS3.
    Can any one whos tried this please help as its urgent.
    Thank you in advance.
    Regards
    Farzana.

    Hi Vikas
    I export files from Photoshop as png's at 72 dpi.  
    Here is our current holding page.  http://www.iheartmylife.co.uk/ All the text on this page has been loaded in as png's from Photoshop along with the image. As you can see none of it is as sharp as it could be.
    Many thanks for your assistance.
    James

  • InDesign Placed Text Linking Issue

    Hi - I've just recently updated to CS6 and am having an issue with linking placed text files.
    When I place the Word Doc into the InDesign file initially (not in position), the link to the original document is present in the 'Links' window as expected. However, I need to transfer this text into another text box on the page and of course when I do so the link is removed.
    Therefore, I tried placing the Word Doc directly onto the page in position (I have an autoflow setup that I need the text to run through) however when I do this no link appears in the window. To clarify, I have three separate text boxes setup on my master page that I need this linked text to flow through.
    Any suggestions how to solve this? I have run through the preferences and ensured everything is as it should be.
    Thanks!

    Sorry for the double post! I've solved it - for anyone else in the same boat, I created a Master Page with the linked text flowed through the 3 separate text boxes. I then selected to override the master objects on the realtime pages and relinked to different documents from there as needed.

Maybe you are looking for

  • SAPSQL_ARRAY_INSERT_DUPREC-Error while processing COM_PCAT_IMS_FEED_INIT

    Hi Yesterday I started multiple initial replications (CRM 2007) of the same catalog but with different variants at the same time. Two of the jobs were canceled from the system with the message: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC Normally I

  • Database table creation

    Hi friends, need some help on this. I have to store data in a data base table. basically the table will have millions of records. I have a program which updates/creates/deletes the data in this heavy table in background job. But strong point i want t

  • Subject Profile Items are not showing in CRMD_Order

    Hi We are in process of Service Desk config. We have copied the standard Subject Profile from SLFN001 to ZLFN001 and copied Code Group I1 to Z1 , Copied Codes MLDDGM1 to ZLDDGM1 and added our own subjects as per the requirement. When we create the ti

  • Missing cover art in album section

    My problem is pretty basic. My cover art for some of the albums I've uploaded do not appear when I click on the albums section. They also don't appear when I click on the artist and then pick an album. When a song plays the alblum cover art appears.

  • Playback choppy after update to ver 11

    After the update to ver 11 my play back is now choppy, every song gets interrupted for a few seconds.  Reverted back to 10.7 but now the problem exsist there too.  Any suggestions welcomed!  Thanks