How to highlight specific words in the Reader

Hi!
I am new to the Acrobat SDK and could need some guidance on how to solve the following problem:
I need a plug-in that is able to highlight specific words in a pdf file (e.g. by underlining it or changing the background color) and offers a context menu with futher actions when the user clicks on a highlighted word. The first step would be searching the text to find the word that should be marked. I think that should not be that hard but how can I highlight specific words? I first thought of annotations but I need it in the Reader and I should not change the pdf file itself (just the view of it).
The idea is similar to the skype plug-in for Firefox or IE. The skype plug-in highlights phone numbers. We need to highlight specific words.
Thanks for every hint on how to achieve this!
Fabian

>The documentation says that AVPageViewHilightText is supposed to use >the current color set with AVPageViewSetColor - so it should work. >What version of Acrobat are you working with?
Yes that how understood the documentation too. I tried the following:
//Define red
red.space = PDDeviceRGB;
red.value[0] = ASInt32ToFixed(1);
red.value[1] = 0;
red.value[2] = 0;
// highlight
AVPageViewSetColor(pageView, &red);
PDTextSelect pdTextSelect = PDDocCreateTextSelect(pdDoc, pageNum, &bbox);
AVPageViewHighlightText(pageView, pdTextSelect);
I am using Acrobat 7.0.9.
>Drawing an image would be done with AVPageViewDrawCosObj
>- which means you'll need to bring the image in as a PDF
> object and then render it.
Oh I should have seen that. Thanks for the hint!!
>Interesting, there should be a way to get transparency,
> but I am not seeing it at the moment.
As far as I understood it, it is possible to set the color to transparent but thats not what I am looking for. I would like to have a way of changing the alpha channel of the color.
Thanks!
Fabian

Similar Messages

  • How do I search for a specific word in the code using Dreamweaver?

    I need to search for a specific word in the code for all of my website pages. How can I do that using Dreamweaver?

    To search local files of a Defined Site in DW...
    Open the Find & Replace tool with Ctrl + F
    Change the Find In dropdown to Entire Current Local Site
    Change the Search dropdown to Text or Source code
    Add the text to find in the Find field
    Add the text to replace in the Replace field (or nothing if you just want to delete the text)
    Hit Replace All

  • How to finds specific words in each sentence?

    import java.io.*;
    import java.text.*;
    import java.util.*;
    public class FindingWordsSpecific {
         static String[] days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "every Tuesday"};
      public static void main( String args[] ) throws IOException {
               // the file must be called 'myfile.txt'
               String s = "myfile.txt";
               File f = new File(s);
               if (!f.exists())
                    System.out.println("\'" + s + "\' does not exit. Bye!");
                    return;
               BufferedReader inputFile = new BufferedReader(new FileReader(s));
               String line;
               int nLines = 0;
               while ((line = inputFile.readLine()) != null)
                    nLines++;
                   System.out.println(findTheIndex(line));     
               inputFile.close();
           public static String findTheIndex(String sentence){
                String result = "";
                String[] s = sentence.split("\\s");
              for (String s1: s){
                   for (String s2: days){
                        if (s1.equalsIgnoreCase(s2)) {
                             if(s2.matches("every Tuesday")){
                                             }else if (s2.matches("every Wednesday")){
                                              }What is wrong with it because I tried to find "every Tuesday" in
    myfile.txt: "Go fishing every Tuesday and every Wednesday"
    There is big problem with split statement because it takes each word not more than a word.
    I need to have "every Tuesday" not "Tuesday". How to make it correct codes?

    I am going to give you a picture of how the output will look.
    Here are two sentences from myfile.txt:
    Go fishing every Tuesday and every Wednesday
    Meet with research students on Thursday
    I need to read from myfile.txt and to find specific words in each sentences like this output:
    Every Tuesday : Go fishing
    Every Wednesday : Go fishing
    Thursday : Meet with research students
    Ok. make sense? Now I am trying to figure out how to find specific words in each sentence from myfile.txt.
    That is why I have difficult with the splits statement and loops. Like this:
           public static String findTheIndex(String sentence){
                String result = "";
                String[] s = sentence.split("\\s");
              for (String s1: s){
                   for (String s2: days){
                        if (s1.equalsIgnoreCase(s2)) {
                             if(s2.matches("every Tuesday")){
                             }else if(s2.matches("every Wednesday")){
                             }else if(s2.matches("Thursday")){
                             }else{
                                  System.out.println("That sentence is not working");
                return result;
      }So look at the "Thursday" it is working the output because I have split statement to give me only one word not more than
    a word in sentence. So there is big problem with more than a word in sentence like this "every Tuesday" and it won't work at all because of split. Could you please help me how to do that? I appreciated for that help. Thanks.

  • How to make Excel, Word, Powerpoint the Default programs?

    Hey guys,
    Just got my new MBP, and I need to know how to make Excel, Word, Powerpoint the default programs when opening one of their files? Currently, the trial version of Iwork opens the programs which drives me crazy.....
    So, for example, for an Excel file, I want Excel to open it, NOT Numbers......etc....
    Thanks In advance.
    JW

    Select a file of that type in the Finder, choose Get Info from the File menu, change the Open With entry for it to the desired application, click on Change All, and confirm the action.
    (47808)

  • How do you add words to the dictionary on the galaxy lll?

    how do you add words to the dictionary on the galaxy lll?

    Type in the word as you see fit, then press it in the list of options above the keyboard. It may save it on the first press, or it may ask you to press the word a second time to save it.

  • How do you delete items from the reading list?

    How do you delete items from the reading list?

    I'm trying to mark your reply as "solved my problem", but I can't see where to mark it. I tried to mark it in the email that came to me with your answer, but it went to a screen that said NOT FOUND. Help?

  • How do i delete items from the reading list

    how di i delete items from the reading list

    Swipe your finger across the item in the list and a delete button will pop up.

  • How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    Thanks. That solved it. I had my doubts since I wasn't concerned about my lost bookmarks. I was concerned about the broken functionality. In any event, restoring from a backup solved both the functionality and the lost bookmarks. I appreciate the response!

  • How to highlight a text in Adobe reader plugin uisng code?

    I am using VC++ to create tyhe Activex control( Adobe Reader plugin). Through code I am able to view the pdf. But now i want to highlight some text in the reader. Is it possible to do it.

    Is it not possible to create highlight annotations using the SDK? At any rate, you should ask over at the Acrobat SDK forum...

  • How to delete a list from the reading list

    How to delete a list from the reading list

    I assume that you mean in Safari, in which case just swipe across it's name in reading list and you should get a Delete button appear on it.

  • How to send ASCII character to the read buffer?

    how to send ASCII character to the read buffer?

    I assume you mean the serial port read buffer. You can't the only way data gets there is by coming in on the receive line.
    What exactly is it that you are trying to do?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Is it possible to allow the user to highlight specific label in the GUI.

    i have an existing GUI tt allows user to key in records of information eg, patient records in a hospital system.
    and display them based on wat the user key in for the patient's id no:
    is it possible to allow the user to highlight label in the GUI.
    Label as in information like Illness:<Red>Cancer<Red>
    for tt customer only.
    and re open the file to have the color still there.
    i serialized my vector of objects into a file, and have the gui to retrieve them upon execution.
    color wise i m lost.
    one solution is to have a corresponding Color attribute to each of my other attribute in all my other classes.
    besides this, any idea how to do it?
    i also did a search on java map..
    couldn't really find sth useful abt it..
    seems like few ppl know how to use it well..
    API doesn't seems to show how i can use it to reach my objective.
    anyway, i hope the user can highlight A attribute of a record and not highlight the entire record..
    tt's why i find it soo cumbersome to have another Color object created for each atttribute.
    eg:
    patientId, patientName, etc.....
    thanks in advance

    Several Swing components understand HTML tags, eg JLabel, which is VERY useful, as in the previous example.
    Are you asking "how do I highlight a field" or "how do I make it remember the color it has"?
    As Color is itself Serializable, why not store your data in a Hashtable not a Vector?

  • Plist strings to UILabel: formatting specific words in the text?

    Developers,
    I have a UILable populated by a plist string. I would like the UILabel to display text, with specific words in bold format.
    I have looked around for a solution to this problem, but I haven't found anything useful on the net.
    Is this possible?
    I have been thinking that this could be done by using a key (e.g. stars around a word *word1*) that identifies particular words within the plist string to be formatted. An if statement could then be used to filter through which words should be formatted, within each string. I'm not sure if this would work or how i would implement it, which is why i turn to you for your experience and advice.
    j
    Message was edited by: james_coleman01

    Hey James!
    james_coleman01 wrote:
    I would like the UILabel to display text, with specific words in bold format.
    Any single instance of UILabel can only have one font, one text color, etc. There's no way to draw one letter or word differently from any other.
    I have been thinking that this could be done by using a key (e.g. stars around a word *word1*) that identifies particular words within the plist string to be formatted. ...
    As always, you're on the right track, James. In fact if you extend your idea to include syntax for italics, underlines, superscripts, etc., then add font family, point size and text color, then add various paragraph styles, you'll be well on your way to inventing what's known as "rich text".
    So the web search keys you needed were "UILabel UITextView rich text". I think the two most common solutions to your requirement are: (1) If the text is static, put the words in separate labels; (2) The recommended, and most general solution: Use UIWebView in place of UILabel.
    No. 2 isn't as kinky as it might seem, even if you've never used HTML (the most widely known example of rich text). Here's a short blog that's probably enough to get you going: [Display Rich Text Using a UIWebView|http://iphoneincubator.com/blog/windows-views/display-rich-text-using -a-uiwebview]. The responses on that page include some good tips too.
    \- Ray

  • How to highlight one word?

    Hi
    Is it possible to highlight one word with iWeb?
    So far I am able to only highlight a whole paragraph.

    I tried this and it appears to work. In iWeb open and the page you want to add the highlight go to the bottom of the page and choose shapes. The rectangle will work. This will show up in the middle of your page. Drag it down and reshape it over the word you want to highlight. Click on the inspector icon on the bottom right of the page and highlight the shapes icon. Click on the color fill and choose bright yellow (or what ever you like). The word you want to highlight will be "hidden" behind the yellow rectangle. Choose the opacity function in the same window as the color fill and move it to check if the rectangle is where you want it placed. With the yellow rectangle highlighted go up to the menu bar on the top of your screen and choose arrange- move to back. Bingo. Sounds hard but its not. Just verbose to describe.
    imac   Mac OS X (10.4.8)  

  • How to upload chinese word in the R/3 with fileupload element?

    HI, experts,
    I am working with a File Upload Web Dynpro Application. And i am using the File Upload UI Element to upload data to R/3, every thing works fine if i upload the file that content is English word. I have 2 questions :
    (1)But it give me dump. Stat 'A character set conversion is not possible'  if I try to upload the file that content is Chinese word.
    (2) But it give me dump. Stat 'A character set conversion is not possible' if I try to upload a pdf file that content is English word.
    The code is:
    method ONACTIONON_UPLOAD .
    DATA XCONTENT TYPE XSTRING.
    DATA: CONTENT TYPE STRING .
    DATA: MIME_1 TYPE STRING .
    DATA: NAME TYPE STRING .
    DATA:
    ROWS TYPE STANDARD TABLE OF STRING ,
    WA_ROWS(300) TYPE C .
    DATA: CONV TYPE REF TO CL_ABAP_CONV_IN_CE.
    DATA: INPUT TYPE REF TO IF_WD_CONTEXT_NODE.
    INPUT = WD_CONTEXT->GET_CHILD_NODE( 'INPUT' ).
    INPUT->GET_ATTRIBUTE( EXPORTING NAME = 'UPLOAD' IMPORTING VALUE = XCONTENT ).
    INPUT->GET_ATTRIBUTE( EXPORTING NAME = 'FILENAME' IMPORTING VALUE = NAME ).
    INPUT->GET_ATTRIBUTE( EXPORTING NAME = 'MIMETYPE' IMPORTING VALUE = MIME_1 ).
    CONV = CL_ABAP_CONV_IN_CE=>CREATE( INPUT = XCONTENT ).
    CONV->READ( IMPORTING DATA = CONTENT ).
    SPLIT CONTENT AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE ROWS .
    LOOP AT ROWS INTO WA_ROWS .
    ENDLOOP.
    endmethod.
    could you please suggest for uploading Chinese word ?
    could you please suggest for uploading English word in the pdf file?
    Thanks
    Mahesh

    Hi, experts,
    It is ok. I changed my code. The chinese word is transfered the R/3 system.
    Thanks.
    Best regards,
    tao

Maybe you are looking for

  • Adding A Quit Button to the Last Slide

    Hi all, One of the most requested features on our first Breeze project was a "quit" button. The easiest way to do so in an HTML environment is to use the command javascript: window.close(); Type this into the address bar on your browser, and hit retu

  • Preview size question

    Right now Preview size is set at Half Size and slider all the way to the left. Lowest quality I guess. This all in Aperture 2.1.1 preferences. It takes forever to update previews. I shoot D300 NEF. Is there a way to turn off previews? Or make them as

  • Monitoring thread usage for ExecutorService objects

    Is there a way to find out how many active threads there are running in an ExecutorService? I am using a fixed thread pool (Executors.getFixedThreadPool()) and I want to monitor thread count in order to see if the pool size I chose is too small.

  • Request to server failed

    Hi, I have iPhoto 7.1.5 and have been trying to upload Christmas photos for the last two days. My connection works fine, I'm only trying to upload 30 photos (less than usual) and uploading used to work fine (last tried a few days ago). This is of cou

  • Airror when converting to Air app in FB4

    I create my fxp file in catalyst and then I import the file into FB4.  Everything works fine until I click on "Add/Change property type" and convert it to and air applications.  Suddenly I get no UI.  I have changed the <s:Application></s:Application