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

Similar Messages

  • Exporting text into Pages

    Is it possible to scan text from a typed page and then open it in Preview and somehow export it into Pages and be able to work with it in Pages? If so, how would you do that? Thanks.

    Is it possible to scan text from a typed page and then open it in Preview
    You need to scan it with OCR software to create editable text. Or send the image to an online OCR service like
    http://www.onlineocr.net/

  • Export Text into Infotype text cluster

    Hi,
    I am trying to insert some text into the infotype text (Edit -> Maintain Text) for infotype 40 programmatically.
    I have written the sample code below but the text is not inserted into the infotype. Can someone advise me what could be wrong with the code ?
    Many thanks in advance.
    Regards
    KC
    =============================================
    REPORT ZTEXTO .
    TABLES : PERNR, PCL1, pcl2.
    INFOTYPES : 0040.
    INCLUDE RPPPXD00.
    DATA : BEGIN OF COMMON PART BUFFER.
           INCLUDE RPPPXD10.
    DATA : END OF COMMON PART BUFFER.
    INCLUDE RPC1TX00.
    GET PERNR.
       LOOP AT P0040.
         MOVE-CORRESPONDING P0040 TO TX-KEY.
         REFRESH PTEXT.
         PTEXT-LINE = 'THIS IS A TRAIL INSERT INSERT INTO INFOTYPE TEXT'.
         APPEND PTEXT.
         RP-EXP-C1-TX.
       ENDLOOP.
       PERFORM PREPARE_UPDATE USING 'V'.
    BUFFER ADMINISTRATION ROUTINE.
    INCLUDE RPPPXM00.

    Hi,
    I have this same issue.  I have the infotype field ITEXT is set to 'X'.  I am trying to update the record in infotype 0672.  I am using the following code, it executes well. But it is not updating the infotype with the text.
    REPORT  zven_insert_text_infotpe                .
    TABLES : pernr, pcl1, pcl2.
    INFOTYPES : 0672.
    Data: gs_0672 TYPE STANDARD TABLE of pskey with header line.
    INCLUDE rpppxd00.
    DATA : BEGIN OF COMMON PART buffer.
    INCLUDE rpppxd10.
    DATA : END OF COMMON PART buffer.
    INCLUDE rpc1tx00.
    gs_0672-pernr = '00010053'.
    gs_0672-infty = '0672'.
    gs_0672-subty = '0001'.
    gs_0672-endda = '04042005'.
    gs_0672-begda = '04042005'.
    append gs_0672.
    clear  gs_0672.
    *GET pernr.
      LOOP AT gs_0672.
        MOVE-CORRESPONDING gs_0672 TO tx-key.
        REFRESH ptext.
        ptext-line = 'THIS IS A TRAIL INSERT INSERT INTO INFOTYPE TEXT'.
        APPEND ptext.
        rp-exp-c1-tx.
      ENDLOOP.
      perform prepare_update using 'V'.
      include RPPPXM00.
    Please let me know ASAP.
    Appreciate.
    Thanks.
    vgoy

  • Creating a .swf in InDesign, is there anyway to export it into a more compatible format?

    I am not sure if the above question is actually what I am asking.  I created a training module using a ton of these .swf files in InDesign.  The .swf files don't line up with the timeline so they can't be paused, fast forwarded or controlled in anyway.  The course was created in Articulate Storyline, their solution is to import it as a video and not flash. When I do that it becomes a static image.  I have the cloud,  I attempted to pull it into After Effects and then export it, but it again, I cannot import it.. (I am still in the beginning stages of learning that program.)  I've installed Flash Pro and attempted the same.
    Is there anyway I can make these files into a compatible format, say mpg-4?
    Thanks!
    Monica

    I wrote that wrong. I create all of my images, backgrounds, designs, and animations in InDesign. From InDesign, I export the images as jpgs and the animations as .swfs.  From there, I import the .swfs into storyline as a flash object, and it plays normally; however, in the player within storyline, while viewing the course, when the slide is paused the .swf keeps going.. If it's fast forwarded, the .swf starts from the beginning.  My goal is to have it work with the player controls, pause with the slide, and continue where it left off - all of that.
    The only way to do so, which I found in the storyline forum, is to import it as a video.
    So the animations I created in Indesign, exported to a .swfs, I attempted to pull into After Effects and then export them; however, it doesn't actually play or seem to exist in after effects - or in Flash Pro, even Premiere.
    Sorry if this confusing.
    Thanks a lot!!

  • 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

  • Export PDF files to office doc formats

    I subscribed to the free trial of export PDF to Word but never succeeded to use it as I got after any trial a reply:"You don't have any more exports remaining in your trial. To export more PDF files to Microsoft Word or Microsoft Excel, upgrade to a premium subscription."
    I just mean to try it/

    I'm afraid we no longer offer a trial of our ExportPDF service.  I'm sorry for the inconvenience. 
    We do offer a 30-day return policy on all our products though.  If you choose to subscribe to the ExportPDF service and it doesn't meet your needs, simply request a refund within 30-days of purchase and our staff will take care of your request.
    -David

  • Export text in pc format

    Hellow
    I' tried export text into textFrame in p.c. format but I can't.
    I created this script but it isn't work. What can I made wrong ?
    var myStories = myDocument.textFrames[myCounter].parentStory;
    myStories.textExportPreference.platform = ImportPlatform.pc;
    myFile = new File(caminhoCollect + "/" + myStories.label + ".txt");
    myStories.exportFile(ExportFormat.textType, myFile);
    thanks
    Carlos Cubas

    Hi Carlos,
    Let's look through your script one line at a time.
    var myStories = myDocument.textFrames[myCounter].parentStory;
    The trouble with this line is that if your document contains any linked text frames, you'll end up exporting the story multiple times. Instead, you should iterate through stories, as shown in the ExportAllStories example script.
    myStories.textExportPreference.platform = ImportPlatform.pc;
    Where did this come from? In the first line, you create a reference to a story. If you look at the object model viewer listing of the properties of a story, do you see textExportPreferences? No. TextExportPreferences exist at the application and document level, but not on a story. You want app.documents.item(0).textExportPreferences.
    myFile = new File(caminhoCollect + "/" + myStories.label + ".txt");
    myStories.exportFile(ExportFormat.textType, myFile);
    I don't see anything obviously wrong with the above lines.
    Thanks,
    Ole

  • Export to Word RTF - Page Server error when over 160 pages exported

    We have XIR2 SP2
    We have a Crystal report published into this Enterprise which, when all parameters are widened, runs to 190 pages.
    The resultant report includes tables
    We can export to PDF but the client requires it in Word RTF
    We can export to Word RTF Editable - and all 190 pages are produced in the resulting file, but of course the tables are omitted and the result is messy.
    So, we need to export to Word RTF where the format is neat and includes the tables.
    However, when we try and export more than 160 pages to Word RTF, we receive the following error.
    CrystalReportViewer
    handleCrystalEvent failed
    Unable to retrieve Object.
    The Page Server you are trying to connect to is not accessible. Please contact your system administrator.
    We have a duplicate environment with an identical configuration, standing by as a failover environment and which points to the same data.This produces the same error, so we don't think it's an installation corruption or failure.
    The page server is set to a maximum of 2,000,000 rows, the cache server at 256000 maximum.

    Hi Tony F,
    Many thanks for coming back on this one. Both Enterprise servers are identical in BO config, Windows 2003 server, but different in hardware.
    One has 4 proc and one has 2, one has twice the memory of the other, yet both fail at over 161 pages. Both have their boCMS db's on different servers, both derive the data from different servers.
    IIS is the web server. The only common denominator is the actual installation software itself and the person who installed it (me).
    On Friday, instead of running the reports in Enterprise/Preview or Infoview (both exhibit the problem) I switched from our default activeX to DHTML, and advanced DHTML. No improvement (Our report wouldn't work with Java, which we never use)
    On the suggestion of the SAP/BO support girl, I then SCHEDULED the report for immediate running and chose WordRTF as the format. This works fine.
    So on that evidence I suspect a software glitch that is specific to using Infoview to open the report rather than schedule it - the two processes must access the WordRTF translator in different ways.
    I'm hoping there is a patch or hotfix that can solve it. Sadly, our users don't have the appetite for the few extra clicks to use the workaround so we're going to have to pursue it with BO unless the forum comes up with an answer - perhaps its something I didn't do properly on installation, or a CMC/CMS setting. We've got 2m row limit on the page server but the report's row count is nothing like that and, anyway, it works if scheduled.
    I'm really grateful to you for taking the time to reply, I hope the above answers your question - if I had hair to pull out, I'd be doing just that!
    Kind regards
    Tony W

  • 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 RAW into JPEG, color differences

    I've done a lot of searching in these forums and I can't find a solution to my problem. I just spent 30+ hours editing a set of 123 wedding photos in RAW file format. When I export to JPEG, the colors change on just about every photo. I understand that if I would have correctly set up the camer calibration prior to editing, this would have possibly solved my problem. However, the photos are already edited. When I export the files in TIFF, they look fine. It's just the JPEG file format that changes the look of my images.  I'm using Lightroom 2.3. My last brainstorm involved importing the already edited TIFF files and then trying to export those into JPEG, the color format was still off. Can anyone Help?

    What program do you use to look at the jpegs?
    Is your screen calibrated?
    What OS are you using?
    There is a free upgrade available for you to the latest LR2 version 2.7. Win and Mac

  • How to convert a pdf file into RTF format or Doc Format

    Hello
    I need to convert a pdf file into a rtf file or doc file.
    But i need to do this with a command line or with the api of acrobat.
    My version is adobe acrobat 9 standard.
    Is it possible to do this?
    So i see there's a convert pdf online.
    Is it possible to use this whith a web service?
    The final file (RTF or doc) must be analyse into an application
    Best regards

    Look at the doc.saveAs JavaScript method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.524.html
    You can save to other formats when you include the corresponding cConvID parameter. It can be used in a batch sequence, but you'll need the Pro version for that.

  • Convert/join multiple file formats (doc, pdf, text) into 1 single PDF/A using web services

    We would like to purchase LiveCycle for the PDF Generator feature, but we want to know if it will meet our technical requirements.
    We would like to convert a PDF, an HTML, a DOCX, and some custom text into 1 single PDF/A. Basically: joining 3 different files types and some text into 1 very long PDF/A file. Can we do this type of join?
    Also, we would like to install LiveCycle on a central server and then call a web service or use an API where we can input the 3 different files and the text and as output we would get 1 PDF/A back. Obviously there might be intermediary steps, but in essence we need to be able to do this conversion from our custom code by calling some LiveCycle API.
    Thanks!

    You can use Assembler service with PDFGenerator. There is support for Web Service endpoints(SOAP). Please go through this for details : http://help.adobe.com/en_US/livecycle/11.0/Overview/lc_overview_ds.pdf
    Thanks,
    Wasil

  • Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exact

    Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exactly same word file on exporting it from its pdf counterpart?

    I was testing the preciseness & efficiency of Adobe acrobat x professional's doc conversion capabilities. As i have to take a document editing project in future which is going to need lot of pdf to word and vice versa conversions . What I did was I created a test word document converted into a pdf using a pdf maker in my word 2007 , Acrobat did convert the document from word to pdf keeping everything in the source file intact , However when i tried the other way round and attempted to convert the same pdf to word 2007 file format I lost my formatting ?So the font that I used to create the pdf are the ones taken from word 2007 which i believe is using the fonts that are installed in my computer. Any suggestions on how to preserve the formatting of the document after converting it from pdf to word file format?
    Regards
    Mike

  • How to convert .doc file into .rtf file in Java?

    Hello All,
    I want to convert doc file into rtf format in java and for the same i am not getting any help so pls suggest some solution for that.
    Thanks and Regards
    only1Vinay

    MS-Word formats (DOC) are notorious for not being standardized from one version to another, so what ever you get will be version specific. If you must do the conversion, I suggest you do a MS-Script in Word to do it or one of the .Net languages. As stated the Word format from version to version is not standardized.

  • Import (and export) HTML text into a text frame (CS2)

    Hi
    As I know it is not possible to import or export text in or from a text frame in HTML format directly.
    - Is there a way to do that?
    - If yes how can I do that? A piece of sample code would be great...
    - Actually I use this for Indesign CS2. Is the HTML import / export in CS3 possible?
    Thanks for the help
    Greetz
    Hans

    Yup. There's no HTML parser built into InDesign.
    Actually, GREP is not a great way to go about it. How would you handle nested tags with GREP? A state machine is a much better way to parse HTML. You might want to look around for Javascript parsers.
    Rorohiko has an HTML walker. I'm not sure if it would help you or not.

Maybe you are looking for

  • When I Disable NAT on my WRT160N I can no longer access the Internet

    Hello, I have had my WRT160N configured and working great for months now.  I had some non-related cable problems and the cable guy split my cable and now I have a specific modem just for the internet.  I can connect to the internet directly and wirel

  • SAP Crystal integration Add on – error

    hola buenas tardes oja le me puedan ayudar con unos de mis clientes que tiene SAP B1 2007  se instal el addon de integracion de crytal reports  esta funcionando muy bien pero en una de los clientes que se instalo  me aparece el siguiente error Could

  • Infospoke data extraction fail

    Hello Experts, I created an infopoke for my cube and extracting the data into a DBtable. I get this error: 'Unable to activate the table /BIC/OHZISPKA1' Where ZISPKA1 is the infospoke created. Any suggestions appreciated. Thanks, SWM

  • Oracle execution in C program exits immediately when CNTR-C is hitted

    Hi, I have a pro c program that connects to oracle and executes a stored procedure. This is done in a while loop. An intrrupt signal function is done(catches CNTRL-C signal), which makes the varibale in while loop false and exits normally in coming l

  • Color Correction Workflow Question

    If I am color correcting on the "original clip" - and then pulling that color corrected "original clip" into its own "clip sequence" that I then pull into a "master sequence", along with all the other "clip sequences" that make up my edit, and I am t