Highlighting documents results from Text via Apex

Hi, I have an application that search user defined text into various documents and publish the results as a link to download the original document.
It is possible to open the document with the corresponding string highlighted in any way?
Documents are mostly pdf files but can be word or other format too.
I know that it can be hard or impossible but maybe not...
Thanks a lot.

You can use the oracle text procedure markup to produce an html version of the document with your search terms hilighted and then use htp.prn to output the generated clob out to the web browser. All sorts of documents can be rendered as html this way. MS Office Docs, pdfs, etc.
There are two markup procedures. One, markup, uses an oracle text index, the other, policy_markup, does not but needs an oracle text policy created.
Hope this help,
Mike

Similar Messages

  • Blank / partially blank export result from Motion via Compressor

    Hi all!
    Final Cut Studio 3 / Mac OS 10.6.8
    I have a set up of two semi-old iMacs. One is a white 2006 iMac, the other is a 2007 iMac. I work with the 2006 iMac because the screen is better, but as it is slower I would like to send processing jobs to the 2007 iMac as it already acts as a server for many things. So I set up the 2007 as a node. What I am making are UI animation demos in Motion. For example I have a 768x1024 (vertical iPad resolution) px / 60 fps / color (without alpha) / solid background / 8 bit depth project that has two layers made out of Photoshop Exported .png's and a move animation (nothing mind blowing) and I am trying to export it to an Uncompressed Apple Animation with the source settings and millions of colors +. Now when I allow it to segment the jobs (as an example) the result turns out so that the segments that were sent to render on the node (the 2007 iMac) are blank, but the ones that were rendered locally are perfectly fine. When I disable the segmented jobs, it sends it to render entirely on the node (which is ok with me, since I'm just trying to take the load off the 2006 iMac) it comes out as a completely blank checker board. What am I doing wrong? I understand I can just open the files on the 2007 and export them there, but I would really like to not have to walk to it every time, since I export many versions in a matter of minutes.
    If I missed any important part of the process, please correct me.

    Ok, tried it with the regular Millions of Colors, but without change - the segments of the timeline that were distributed to render on the node (2007 iMac) came out blank.

  • Create Oracle Text Index from Java via JDBC

    Hi, I have a question relevant to creation of the Text Index in Oracle Text via Java JDBC.
    In Java I create client application and I connect to remote Oracle server. (there is Oracle
    10g Enterprise Edition 10.2.0.3.0 on Debian Linux OS). In Java I create query:
    CREATE INDEX index_name ON source_tab(text) indextype is ctxsys.context
    parameters('datastore ctxsys.file_datastore filter ctxsys.null_filter');
    and I start it by:
    PreparedStatement stmt = db.prepareStatement(query);
    ResultSet rs = stmt.executeQuery();
    There is problem that Text Index is created empty and when I write out error log then:
    DRG-11513: unable to open or write to file "path"
    I have on my computer Oracle XE 10g (Windows XP OS) here this application in Java functions
    without problems. Without problems it´s with that same query in SQLPlus when I connect at
    this remote Oracle server via PuTTY.
    Do you know anybody where could be error? Or at worst case where find I more detailed
    manual about JDBC Oracle mainly possible errors and problems with compatibility?

    Does it work if you don't use "file_datastore"?
    Eg. try the following in sqlplus:
    create table t (text varchar2(2000));
    insert into t values ('hello world');
    create index ti on t(text) indextype is ctxsys.context;
    select * from t where contains (text, 'hello') > 0;
    Then drop the index ti and try the same "create index" through JDBC. Does that work?
    If so, then we have some kind of issue with the file_datastore. I assume you are aware that the file will be read by the SERVER, not from the client?
    So if your database resides on a Linux box, but you are calling from a Java program on a windows PC, the file names in source_tab(text) must be in Linux format, and must refer to files which are available on the Linux server (and readable by the owner of the Oracle database process).
    So /home/me/file.txt might work, but C:\Documents\file.txt will not.

  • How do I search scanned documents that Adobe Reader reads but shows 0 results from the search?

    How do I search scanned documents that Adobe Reader reads but shows 0 results from the search?

    If the scanned document was not processed for OCR, then it is just an image and cannot be searched for text.

  • Problems highlight, drag and drop text in Microsoft Word from Adobe Free

    We work with two screens (monitors), and is open on a document opened from the Adobe (free) (extension. PDF) and other Word (Microsoft). In previous versions of Adobe, you could highlight a word or text and just drag them to the Word, without the need to "copy" and "paste". In this version of the Adobe XI, there is the same possibility, since we're not getting to do as before?

    Hi Rave:
    Many thanks for the tip and information. Really, after that there was updated in our system of electronic procedural actions (I work in Federal Court in the state of Santa Catarina in Brazil) stopped working the highlight text and drag it to the document from Microsoft Word 2007. Anyway, I believe that the problem is not with Adobe Reader, but our system has been updated.
    Greetings.
    Paulo Dozoretz

  • [SOLVED] How to Create an Image from UTF8 Text via Command-line

    As the title points out, I'm trying to create an image from unicode text via command line. I tried...
    convert -pointsize 48 -size 400 caption:测试用 text.png
    But that results in question marks for the Chinese characters. So searching around online I discovered that I needed to specify a font which could display the characters. The characters show up just fine in Firefox, KDE, Kate, Terminal, etc so I know I have a font which can render them. I thought it might be DejaVu but this also resulted in question marks...
    convert -font /usr/share/fonts/TTF/DejaVuSerif.ttf -pointsize 48 -size 400 caption:测试用 text.png
    Any ideas?
    Last edited by tony5429 (2011-01-31 23:17:41)

    DejaVu doesn't contain those Chinese glyphs at all, so please don't blame ImageMagick for not rendering them.
    So, Firefox, Kate, Terminal and the others you stated to use DejaVu, if encounter these characters, fall back to some other fonts to render them. These fonts are, however, not vector, but bitmap fonts. (This can be seen if you increase text size (Ctrl++ in Firefox): the Chinese characters don't change, they remain of their inherent size.)
    Actually, e.g. /usr/share/fonts/misc/18x18ko.pcf.gz definitely contains the three example characters, so the mentioned apps may use this font as fall back.
    Apparently ImageMagick doesn't handle bitmap fonts (I'm not sure), so you won't be able to hit your original target. Anyway, since you tried to parse "-pointsize 48", you wouldn't be satisfied with the font size.
    Your only choice seems to be using the above mentioned CJK-approved TTFs.
    EDIT: typo
    Last edited by barto (2011-01-28 21:52:33)

  • When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?

    When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?
    I need to be able to send it to a PC in order to print it.

    Hard to say what is happening without examining the file.
    If you like click on my blue name and email me both the .pages file and the the .pdf you have made from it.
    Peter
    ps It would help to say what version of Pages you are using and on what you are running it. iOS or Mac and what version.

  • Remove text field from Array via for loop

    Hi,
    i have a problem to remove text fields added via for loop.
    That im doing is, via for loop im dynamically creating menu with 10 buttons.
    Each button contain, dynamically created, background (shape) and text field.
    And everything is fine.
    But when im try to remove text fields then i got this error:
    - Im using button to remove text fields - lang_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
              at flash.display::DisplayObjectContainer/removeChild()
              at Loading_Img_fla::MainTimeline/xmlLoaded()
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/onComplete()
    In the script bellow marked with red is what should remove text fields from an Array, instead giving me error.
    Here is my script
    // Create for loop
    for (var i:int = 0; i < 10; i++)
              for each (xml in listItems)
                        if (i == xml.attribute("Id"))
                                  // Add MovieClip to stage to hold the data
                                  addChild(lmHolder);
                                  lmHolder.x = 0;
                                  lmHolder.y = 0;
                                  // Create new MovieClip to hold buttons
                                  lmButtonsMCArray[i] = new MovieClip();
                                  lmButtonsMCArray[i].buttonMode = true;
                                  lmButtonsMCArray[i].mouseChildren = false;
                                  lmButtonsMCArray[i].x = 20;
                                  lmButtonsMCArray[i].y = 20 + btCount * buttonSpace;
                                  // Add each button MovieClip to lmHolder MovieClip
                                  lmHolder.addChild(lmButtonsMCArray[i]);
                                  // Create Background to buttons
                                  lmButtonsArray[i] = new Shape();
                                  lmButtonsArray[i].graphics.beginFill(lmBgColor0, 1);
                                  lmButtonsArray[i].graphics.drawRect(0, 0, 230, 85);
                                  lmButtonsArray[i].x = 0;
                                  lmButtonsArray[i].y = 0;
                                  // <<-- Add Background shape to the buttons MovieClips
                                  lmButtonsMCArray[i].addChild(lmButtonsArray[i]);
                                  // Create a new array to preserve data from XML List
                                  lmNameArrayEG = new Array();
                                  lmNameArrayUS = new Array();
                                  // Create local variable to hold
                                  var lmTxtFieldContentUS:String;
                                  var lmTxtFieldContentEG:String;
                                  var lmTxtContent:String;
                                  // If clicked button is EG then make array with Arabic text
                                  // If clicked button is US then make array with English text
                                  if (footer.lang_btn.langState == "EG")
                                            for each (var leftMenuName:XML in egLanguageList)
                                                      lmNameArrayEG.push(leftMenuName);
                                            lmTxtFieldContentEG = lmNameArrayEG[i];
                                            lmTxtContent = lmTxtFieldContentEG;
                                  else
                                            for each (var leftMenuNameUS:XML in usLanguageList)
                                                      lmNameArrayUS.push(leftMenuNameUS);
                                            lmTxtFieldContentUS = lmNameArrayUS[i];
                                            lmTxtContent = lmTxtFieldContentUS;
                                  // Setup new text field each time script is executed
                                  lmTxtFieldsArray[i] = new TextField();
                                  lmTxtFieldsArray[i].width = 110;
                                  lmTxtFieldsArray[i].border = false;
                                  lmTxtFieldsArray[i].wordWrap = true;
                                  lmTxtFieldsArray[i].multiline = true;
                                  lmTxtFieldsArray[i].selectable = false;
                                  lmTxtFieldsArray[i].embedFonts = true;
                                  lmTxtFieldsArray[i].antiAliasType = AntiAliasType.ADVANCED;
                                  lmTxtFieldsArray[i].autoSize = TextFieldAutoSize.CENTER;
                                  lmTxtFieldsArray[i].text = lmTxtContent.toUpperCase();
                                  lmTxtFieldsArray[i].x = 10;
                                  lmTxtFieldsArray[i].name = "lmTxtFieldName" + i;
                                  // <<-- Add Text fields to the Movie Clip
                                  lmButtonsMCArray[i].addChild(lmTxtFieldsArray[i]);
                                  // If clicked button is EG then set Arabic text format, and make array with Arabic text fields
                                  // If clicked button is US then set English text format, and make array with Egnlish text fields
                                  if (footer.lang_btn.langState == "EG")
                                            lmTxtFieldsArray[i].setTextFormat(txtFormat_lm_eg);
                                            // Make array from text fields;
                                            pushEgTFintoArray.push(lmTxtFieldsArray[i]);
                                  else
                                            lmTxtFieldsArray[i].setTextFormat(txtFormat_lm_us);
                                            // Make array from text fields;
                                            pushUsTFintoArray.push(lmTxtFieldsArray[i]);
                                  // If clicked button is EG then loop thrue the for loop and remove English text fields from array
                                  // If clicked button is EG then loop thrue the for loop and remove Arabic text fields from array
                                  if (footer.lang_btn.langState == "EG")
                                            for (var rNr_us:Number = 0; rNr_us < pushUsTFintoArray.length; rNr_us++)
                                                      //remove the text field array from the display
                                       removeChild(pushUsTFintoArray[rNr_us]);
                                            //clear the array
                                            pushUsTFintoArray = [];
                                  else
                                            for (var rNr_eg:Number = 0; rNr_eg < pushEgTFintoArray.length; rNr_eg++)
                                                      //remove the text field array from the display
                                       removeChild(pushEgTFintoArray[rNr_eg]);
                                            //clear the array
                                            pushEgTFintoArray = [];
              btCount++;

    it looks like those tf's are children of  lmButtonsMCArray[i], not the current scope.  use:
    if (footer.lang_btn.langState == "EG")
                                            for (var rNr_us:Number = 0; rNr_us < pushUsTFintoArray.length; rNr_us++)
                                                      //remove the text field array from the display
                                        lmButtonsMCArray[rNr_us].removeChild(pushUsTFintoArray[rNr_us]);
                                            //clear the array
                                            pushUsTFintoArray = [];
                                  else
                                            for (var rNr_eg:Number = 0; rNr_eg < pushEgTFintoArray.length; rNr_eg++)
                                                      //remove the text field array from the display
                                        lmButtonsMCArray[rNr_eg].removeChild(pushEgTFintoArray[rNr_eg]);
                                            //clear the array
                                            pushEgTFintoArray = [];

  • When importing from a Word document placing the text in InDesign

    When importing from a Word document placing the text in InDesign I can only see the text from the first page of the Word document. I have increased the number of pages in the Indesign document to more than what is in the Word document, still only text from the first page is shown. What am I doing wrong or did I not set a setting correctly?

    When you want to auto flow text while placing, hold down the Shift key when clicking with the Place cursor on the first page. New pages will be generated and text will be auto flowed using the margins set up on the master page.

  • Webi - Result from subquery / add subquery not highlighted

    Hi,
    we have just now bought BO XI 3.1 SP3 and installed on SAP BW. .Due to the initial phase, we are currently using temporary 1 month license key from SAP until installation is done in Prod. When we build WebI query, In filter pane of webi query, when we drag filter field, i can see that option 'Result from subquery' and icon 'add subquery ' is not highlighted. I read in some forums that this feature is not available in OLAP universes.
    Is is because we are using temporary license key? OR it is still not available in OLAP universes?
    regards,
    Rahul.

    This feature is not supported currently for OLAP universes.
    Regards,
    Stratos

  • How to build tag cloud from text document

    Hi,
    I want to build tag cloud from text documents.
    The text dcouments has several lines of sentence.
    The tag shows long sentense, not key words.
    Please let me know how to build.
    And Can I use CAS or text enrichment?
    Thank you very much.
    SWKO

    Hi,
    You need to extract salient terms (e.g. people or product names) from your text documents by using the text enrichment or the text tagger component.
    This step will generate new attributes, which can be used in your tag cloud.
    Mathias

  • SAP Document Access by Open Text - can it recognize barcode and identify document number from barcode.

    Hello all,
    for SAP Document Access by Open Text - can it recognize barcode ? As well identify document number from barcode ? With this document number can we configure the business transaction to which this scanned barcode could be attached as attachment link?
    Regards
    Vimala

    Vimala,
    for SAP Document Access by Open Text - can it recognize barcode ?
    You can implement all basic scenarios of archive link with ADA SAP Document Access by Open Text.
    In your case ADA SAP Document Access by Open Text supports late storing with bar code and early storing with bar code scenarios of archive link
    As well identify document number from barcode ?
    Barcode is for indexing. During late archiving scenario you bind the index (barcode) to the SAP document number (invoice/Sales order..etc) which pop-ups a window for entry of SAP document number.
    Typically real time scenario may be archiving email correspondence to each every SAP documents of sales process right from Quotation to Sales Order so that every user of the corresponding SAP document can view correspondence.
    Similarly for early storing with bar code scenarios storing of all the partial (contract) deliveries with same barcode number to full fill the ordered quantity.
    Of course it depends on these are to be applied to scenarios.
    With this document number can we configure the business transaction to which this scanned barcode could be attached as attachment link?
    Yes
    Thanks,
    Kolusu

  • Get xml Document result via Toplink.

    Hi.
    I want to get XML Document result instead of the entities of the table by using the Toplink.
    Who have some advices?
    Thanks.

    Please try the toplink forum.

  • Using Oracle Text with Apex

    Can someone point me to some resources on how to integrate Oracle Text and APEX to do searches, highlight results, etc (all the features of Oracle Text)?
    The data to be indexed is in files on the filesystem, so I would like to keep it that way and use the FILE_DATASTORE option for Text.
    Thanks for any pointers.
    Update: Yes, I did see http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
    but the search results there just returns the URL/file containing the "hit". It doesn't show the actual text fragment that caused the match, doesn't highlight it, etc. I am looking for a real Google-like search. Hm, having said that, I might as well use Google Desktop! Nah, where's the fun in that?

    This is a very simple application for my own use. It started life in 8i when there were fewer Text options.
    As such, it uses the query string as entered. This returns all of the matches:
    select msgid, msgdate, Box, fromaddr, subject
      from eudora.inbox
    where contains(body, :P703_MailSearch) > 0
    order by msgdate descI display the selected result like this:
    select subject,
      Replace(eudora.mmarkup(:P704_MSGID, :P702_SEARCH), Chr(13), '<BR>') Body
      from eudora.inbox
    where msgid = :P704_MSGIDIn a newer application, I experimented with the CTXCAT grammer.
    That query looks like this:
    select m.ID, m.pdpno, m.shortdesc
      from pdp_mast m
    where contains(m.dphistory, '<query><textquery lang="ENGLISH" grammar="CTXCAT">
                                             ' || :P1_Text || '
                                         </textquery>
                                      <score datatype="INTEGER"/>
                                  </query>') > 0     
        or contains(m.shortdesc, '<query><textquery lang="ENGLISH" grammar="CTXCAT">
                                             ' || :P1_Text || '
                                         </textquery>
                                      <score datatype="INTEGER"/>
                                  </query>') > 0As always, once you figure out the syntax, its easy to make it work in Apex.
    Text indexes are very fast. On my old 600MHz PC, searches in 250MB of text take less than a second.

  • Read from text file vi won't read file...

    I am very new to LV programming so I hope you forgive any stupid mistakes I am making.   I am using Ver. 8.2 on an XP machine.
    I have a small program that stores small data sets in text files and can update them individually or read and update them all sequentially, sending the data out a USB device.   Currently I am just using two data sets, each in their own small text file.  The delimiter is two commas ",,".
    The program works fine as written when run in the regular programming environment.   I noticed, however, as soon as I built it into a project that the one function where it would read each file sequentially to update both files the read from text file vi would return an empty data set, resulting in blank values being written back into the file.   I read and rewrite the values back to the text file to place the one updated field (price) in it'sproper place.  Each small text file is identified and named with a 4 digit number "ID".   I built it twce, and get the same result.  I also built it into an installer and unfortunately the bug travelled into the installation as well.
    Here is the overall program code in question:
    Here is the reading and parsing subvi:
    If you have any idea at all what could cause this I would really appreciate it!
    Solved!
    Go to Solution.

    Hi Kiauma,
    Dennis beat me to it, but here goes my two cents:
    First of all, it's great to see that you're using error handling - that should make troubleshooting a lot easier.  By any chance, have you observed error 7 when you try to read your files and get an empty data set?  (You've probably seen that error before - it means the file wasn't found)
    If you're seeing that error, the issue probably has something to do with this:
    Relative paths differ in an executable.  This knowledge base document sums it up pretty well. To make matters more confusing, if you ever upgrade to LabVIEW 2009 the whole scheme changes.  Also, because an installer contains the executable, building the installer will always yield the same results.
    Lastly, instead of parsing each set of commas using the "match pattern" function, there's a function called "spreadsheet string to array" (also on the string palette) that does exactly what you're doing, except with one function:
    I hope this is helpful...
    Jim

Maybe you are looking for

  • Printing with Windows 8.1 on HP Photosmart 5520

    When will Hewlett Packard make an updated driver that is compatible with Windows 8.1 and my Microsoft Surfact RT Tablet? 

  • Server Side Includes and Divs

    I have a template (dwt) for my site with editable regions for menus. I want to use Server Side Includes for the menu, as not all the pages will have the same menu. I have designed the site template (and pages) with css and divs. The area for the SSI

  • HELP ACCESS POINT!!!!

    HI GUYS I HAVE NOKIA X6. 1:I WAS HAVING PROBLEM WHEN IM USING WIFI AMATICLY CONNECTION GETS CHANGED TO DATA PACKAGE... 2:I DELETED MY  DATA PACKAGE ACCSESS POIN(JAWAL-NET) .... 3:WHEN AM TRYING TO MAKE NEW ONE WHEN I AM DONE MAKING,TRY TO OPNE SUMTHI

  • Almost Lost All My Folders/Data On Desktop After OS 10.5.3 UpdateToday

    Folks, I need to report what happened today on my MacBook after I did the 10.5.3 update today. After the long updating process, the laptop restarted 2-3 times automatically until it finally got to my desktop. But to my surprise, every single folder a

  • Apple Watch band too small

    I asked the Apple chat people if the Tim Cook Genius Division was working on a solution that will allow those of us that don't fit Apple's idea of who should buy and wear their Apple Watch, a way to wear the watch rather than put it in our pocket wit