Programmatically search for a word in PDF file

In the program I am developing, I am opening up a PDF file from the application. Is there any way to search for a particular word in the PDF file and move to the page containing the first occurance of that word in the PDF file programmatically? I am using VC++ to develop the application.
Any guidance is appreciated and thanks in advance.

Thanks for your reply Leonard.<br />I am not using any library now. Currently I am just opening up the PDF file in Adobe Acrobat Reader using ShellExecute() API passing the PDF filename. <br />Now I want to open the PDF file in Adobe Acrobat Reader, and move to the page containig a particular text automatically.<br />Is it possible through any command line arguments to AcroRd32.exe like, <br />AcroRd32.exe <filename.pdf> search:<wordtosearch><br />OR I have to use any third party library to do this.

Similar Messages

  • Will not search for a word in pdf file. Using Windows 7

    Like most I have used Acrobat reader for viewing PDF files for years.  I recently upgraded to Windows 7 from XP.  I have tried to search a PDF file for a word and it always comes up with none found even though I search for a word that is displayed in the document I'm looking at.  Any advice?
    Regards,
    Dwight

    If the PDF is not a scanned image, can you share it with us: https://forums.adobe.com/thread/1070933

  • How do I search for a word through multiple files in my directories ??

    Hello everyone
    How do I search for a word through multiple files in my directories ??
    I am guessing one tedious way to do it would be to pass all the file names as command line arguments but I"m sure there exist a much easier and faster way to do it.
    Thanks a lot

    You need to pass only the directory name as parameter and then retrieve the files(recursively throug subdirs or not, however you wish) of that directory.
    There were at least 2 threads yesterday on how to retrieve files from directory, and there are many others in the archive so I leave the search part to you ;)
    HTH
    Mike

  • Searching for links across multiple pdf files

    We have thousands of pdf files that are being moved to a new website. Some of these pdf files have links within them (either as text or as a hyperlink). This number is unknown.
    The issue is how to programmatically search across multiple pdf files (numbering in the thousands) looking for links using a regular expression or part of a path. This will have to be able to search behind the text and search for the link url.
    We first need to identify the number of files with links and create a list of the files with links that need modifying. If the number is too great to modify manually, then we would need the ability to programmatically edit these links.
    The pdf files are stored in a database. Also, the pdf files are different versions and some are password protected.
    Is there an Adobe product that will perform this? If not, are there any 3rd party vendor products that will accomplish this?
    Thanks in advance for your help.

    I have no solution, but a thought: the database factor may seem to be
    a killer. But you could look for a solution designed to read PDF files
    from a web site (by spidering or from a list), which would presumably
    load them.
    Or could do a one off extraction of the files from the database into a
    directory and use that for your process. Probably a very good idea,
    since extracting all files from the database is likely to be costly
    and hammer the server (but can be scheduled at a sensible pace), while
    the search process will (if it is possible at all) doubtless need to
    be run countless times.
    Aandi Inston

  • How to search for text inside multiple pdf file at once in ipad

    Hi
    I am student and i need search a word or subject or sentences on my all pdf files,i have tested some applications like ibook, ipdf, addobe reader, good reader ,....  But couldn't find what i need to have.
    Please kindly help me to find the best application.
    Thanks

    I found an article, that claims PDF Expert does exactly what you are asking.
    Article: http://www.imore.com/pdf-expert-ipad-brings-full-text-search-pdf-library
    PDF Expert: https://itunes.apple.com/us/app/pdf-expert-fill-forms-annotate/id393316844?mt=8

  • Search for "A word or phrase in the file" in .trc files gives no result

    Hi
    When i Search through Explorer using search for "A word or phrase in the file" in .trc files I get no result.
    Probably because these files are of type "Microsoft Network Monitor Document".
    But I can open them using Notepad, so why can't I search for a word in these files?
    I there another way to search?
    Normally I ofcourse use Visual Admin. but there are a lot of trace files so it would be nice to do this kind of search
    br Peter

    Hi Peter,
    This is a known problem, see http://support.microsoft.com/kb/309173
    An alternative is to use other tools which search even faster than the slow MS search does.
    Hope it helps
    Detlev

  • Tell me Logic for search for duplicate words(or strings) in a large file.

    Search for duplicate words (or strings) in a text file containing one word per line. For each word that occurs more than once in the flat file output should be as follows
    <word> <number of occurrences> <line numbers in the file where the word occurs>
    For example, if the word Hello occurs thrice in a file at lines 100, 178 and 3456 the output should read
    Hello, 3, [100, 178, 3456]

    Incidentally i wrote similar code some days back. You need to do some modifications to get the exact output you want, but i hope it will be of some help.
    One more thing its written using JAVA5
    public class Test
         private static final String COLLECTIONS_TEXT = "C:\\Documents and Settings\\amrainder\\Desktop\\Collections.txt";
         public static void main(String[] args) throws IOException
              findDuplicateWords();
         private static void findDuplicateWords() throws IOException
              Collection<String> words = new LinkedHashSet<String>();
              File file = new File(COLLECTIONS_TEXT);
              StreamTokenizer streamTokenizer = new StreamTokenizer(new FileReader(file));
              int token = streamTokenizer.nextToken();
              while(token != StreamTokenizer.TT_EOF)
                   if(token == StreamTokenizer.TT_WORD)
                        words.add(streamTokenizer.sval);
                   token = streamTokenizer.nextToken();
              System.out.println(words);
    }Cheers,
    Amrainder

  • Searching for an entry in a file that contains 2 words or more...

    Hey :)
    I created a Binary Search Tree that would hold a list of words located in a .txt file. So, basically, the objective of the program is to search through a typed up document for the words in the search tree, and if the word is found, return it to the user to see.
    I have that part working, but what I'm having trouble with is one of the entries in the file. The entry is "data structure." All the other entries are 1 word, like queue, depth-first, etc...but this one is 2 words. I'm having trouble making it so that the search will detect the 2-word entry, "data structure." How do I go about searching for entries that are 2 or more words in length?
    I have been struggling with this for some time, and I don't know if it's just me, but I'd really like to get this done since this is the only thing I'm having trouble with right now. I thought I could figure this out, but I'm just putting too much time into it, and I need to submit this tomorrow.
    Any help would really be appreciated! :)
    Take care,
    Alex

    Yea, I was thinking of doing that myself. Turning the two words into one word, so it'll end up like, "datastructure," but how do I do that? Would I use the substring method? Or is there something else that I can use to get rid of whitespace. I'll look that up now on google or something, but in the meantime, if anyone can help me out with this, it would be great.
    Just for a reminder, this is my problem :: I need to be able to locate an entry in my document that has 2 words in it. In this case, the entry is, "data structure." How can I go about searching for this 2 word entry? It seems to be a bit more complex than merely searching for one word. Any help you can provide me would be great! :)
    Here's the code for the Binary Search Tree:
    import java.io.*;
    import java.util.*;
    public class KeywordBinarySearchTree
         BinaryNode root;
         //static String[] docWords; // captures each of the words into an array while ignoring punctuation
         public KeywordBinarySearchTree()
              root = null;
         public void preOrderTraversal()
              preOrderTraversal(root);
         public void inOrderTraversal()
              inOrderTraversal(root);
         public Comparable findNode(Comparable node)
              return dataOfNode(findNode(node, root));
         public Comparable dataOfNode(BinaryNode node)
              if (node == null)
                   return null;
              else
                   return node.nodeData;
         public BinaryNode insertInOrder(Comparable iNodeData)
              BinaryNode nodeWalker;   // used to walk through each of the nodes until the appropriate spot
                                            // is found to insert the node of data
              BinaryNode parentNode = new BinaryNode(iNodeData); // represents the new root node after each pass through the tree
              if (root == null) // if it's a brand new tree with no nodes, then insert the new root of the tree
                   root = new BinaryNode(iNodeData);
              else
                   nodeWalker = root; // sets current root of tree to nodeWalker
                   while (nodeWalker != null) // will start its first iteration of the loop at the top of the tree
                        parentNode = nodeWalker;
                        if (iNodeData.compareTo(nodeWalker.nodeData) < 0) // if the data to be inserted is less than the current
                                                                                       // node in the tree
                             nodeWalker = nodeWalker.leftChild;                  // set nodeWalker to the left child of that node
                             System.out.println("INSERT NODE: LEFT CHILD");
                        else
                             nodeWalker = nodeWalker.rightChild;                 // otherwise, set nodeWalker to the right child of that node
                             System.out.println("INSERT NODE: RIGHT CHILD");
                   } // this loop will determine where the node has to travel to get to the appropriate destination. once the nodeWalker
                     // has reached its final stop, the while loop exits into the statements below to insert the new node of data
                   if (iNodeData.compareTo(parentNode.nodeData) < 0)
                        parentNode.leftChild = new BinaryNode(iNodeData);
                        System.out.println("INSERT NODE: PARENT NODE LEFT CHILD");
                   else
                        parentNode.rightChild = new BinaryNode(iNodeData);
                        System.out.println("INSERT NODE: PARENT NODE RIGHT CHILD");
              return parentNode;
         public BinaryNode findNode(Comparable searchNode, BinaryNode bn)
              if (bn == null)
                   return null;
              else
                   while (bn != null)
                        if (searchNode.compareTo(bn.nodeData) < 0)
                             bn = bn.leftChild;
                             //System.out.println("FIND NODE: LEFT CHILD DETECTED");
                        else if (searchNode.compareTo(bn.nodeData) > 0)
                             bn = bn.rightChild;
                             //System.out.println("FIND NODE: RIGHT CHILD DETECTED");
                        else // word has been spotted in the tree!
                             System.out.println(bn.nodeData);
                             return bn;
              return null;
         public void preOrderTraversal(BinaryNode bn)
              if (bn == null)
                   return;
              System.out.println(bn.nodeData);
              preOrderTraversal(bn.leftChild);
              preOrderTraversal(bn.rightChild);
         public void inOrderTraversal(BinaryNode bn)
              if (bn == null)
                   return;
              inOrderTraversal(bn.leftChild);
              System.out.println(bn.nodeData);
              inOrderTraversal(bn.rightChild);
    // and then the code after this is the public static void main code, which I posted snippets of above.

  • Searching for a word or phrase in a file on NSS Pool/Volume

    I have encountered a strange issue in that if I search for a word or phrase in a file at any level of the volume, from the root, down to sub folders, I get different results from 2 or more PC's.
    Workstations are all Win XP SP2, Novell Client 4.91 SP4 for Windows
    Server NW 6.5 SP6 with all post SP's installed.
    I have ran a nss /PoolRebuild=POOLNAME and a NSS /VisibilityRebuild=VOLNAME
    There is only one volume on this pool.
    And I still encounter the same results.
    As one example:
    On my Admin workstation When I search the top level Folder of Closed Client folders for the word chronology, I get 2 files returned named chronfile1 and chonfile2, when I search from any other workstation (I have tried 4 different workstations at this point) at the same folder level, for the same word Chronology, I get multiple files with the Word in the File, but I do not see files chronfile1 or chronfile2. Likewise, the file names returned form the search results on the other workstations, are not returned in the search list ran on the admin (Mine) workstation. And yes, I am logged in as admin on the other workstations when running the search.
    So far, this issue is only appearing on 1 volume.
    Thoughts?

    Originally Posted by ataubman
    If you log in to the second PC as Admin, does the symptom move? IOW does it follow the user or the workstation? If the user you may have some odd file system rights set, although your specific results you report are puzzling.
    I'm assuming you are using the Windows desktop search tool?
    I ran a NSS /PoolRebuild last night which fixed an issue the workstations not being able to see the 2 files in question.
    Previous night I had just performed an NSS /PoolVerify.
    Part of the other anomoly, the other workstations seeing more files than the admin workstation (I feel so Stupid, after 25 years you think I'd be able to spot the obvious) the reason the other workstations were returning files that the Admin workstation was not - Admin workstation doesn't have Word Perfect installed.
    Somebody, give me a Gibbs head slap, now!

  • How to search specific text/string in pdf files from command prompt?

    Hi,
    How to search specific text/string in pdf files from command prompt?
    Will be great if you can refer to any adobe provided command base utility to achieve the above target.
    Best Regards,

    You can't. The commandline parameters for Acrobat and Adobe Reader do not allow any type of commands to be run.

  • Search for more words one time

    Goodmorning, as long someone could help me with the other issue http://forums.adobe.com/thread/1057325?tstart=0 I have another question for you.
    I need to search for a specific list of words but I want to search only one time... So for example if I'm searching 3 different words HELLO - GOODBYE - CIAO I want that acrobat perform the searches in the same time and let me see how many times the words are repeated.
    I try with the advanced search but I can only search one word at time...  I see there is a command under tools>protection>find and remove text (hope I have translate right from Italian software) to search for different words in the same time but the problem is that it can't report how many times thw words are repeated. As you see I need a mix of the two tools
    Do you have some suggestions?
    Hope to read you soon. Thanks,
    Luca
    PS: I know I can do that with the boolean expression but in this way acrobat doesn't separate the rusults.

    It will work with any of the smart album criteria - file menu ==> new smart album
    The easiest way to see is to take a look at what is available there - and make a smart album or two - if you don't like them just drag them to the iPhoto trash and do another one
    LN

  • I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF file

    I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF files on my iphone?

    Apple never bopthered to explain that this would happen
    Your iDisk is still accessible after moving to iCloud in exactly the same way as before. Nothing is deleted until June 30th 2012.
    , so I could easily have lost ALL of the files I kept on iDisk.
    No, you couldn't. Firstly, nothing was deleted from your iDisk. Secondly, any files stored on your iDisk should never be your only copy. Even if your iDisk spontaneously combusted, you should keep local backups elsewhere.
    Does Apple WANT people to move their storage elsewhere and stop paying Apple for it?
    Yes. Apple doesn't provide such a service anymore, nor are you paying them for it.
    Apple has made no effort to suggest remedies for the problem it has given iDisk users
    They've provided instructions on how to download your files from your iDisk. What you do with them after that is your choice.

  • How to upload words, exel, PDF file from the pc via itune to the iPad, and where will the uploaded file be saved? In the apps?

    How to upload words, exel, PDF file from the pc via itune to the iPad, and where will the uploaded file be saved? In the apps?

    You will need an app (or apps) on your iPad that is capable of reading the documents, as they will be saved with the app - if you don't have such an app then there is nothing to transfer them to or to read/access them.
    One method of transferring them is toconnect your iPad to your computer's iTunes, select it's app tab, and then scroll to the bottom of it - you should the apps That you've got that are capable of file-sharing (if you've got any).  Selecting/high-lighting one of them should then allow you to add files to it via the box to the right of it.
    An alternative way to get the documents onto your iPad is if the app that you want to transfer them to has a wifi setting, which will then allow you to transfer the documents wirelessly. You can also send the documents to yourself as attachments and then use Mail's 'open in' facility to copy them into your chosen app.
    Edit : more info on file sharing from the manual :
    File Sharing lets you transfer files between iPad and your computer. You can share files created with a compatible app and saved in a supported format.
    Apps that support file sharing appear in the File Sharing Apps list in iTunes. For each app, the Files list shows the documents that are on iPad. See the app’s documentation for how it shares files; not all apps support this feature.
    Connect iPad to your computer.
    In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
    In the File Sharing section, select an app from the list on the left.
    On the right, select the file you want to transfer, then click “Save to” and choose a destination on your computer.
    Transfer a file from your computer to iPad:
    Connect iPad to your computer.
    In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
    In the File Sharing section, click Add.
    Select a file, then click Choose (Mac) or OK (PC).
    The file is transferred to your device and can be opened using an app that supports that file type. To transfer more than one file, select each additional file.
    Delete a file from iPad: Select the file in the Files list, then tap Delete.
    Message was edited by: King_Penguin

  • When forwarding Word or PDF Files they get corrupted

    I have several users that when they forward either a word document of a pdf file they get corrupted.  If I forward directly from Outlook (2007) they are perfectly fine. 
    Anybody know what is happening?  We tend to send a lot of word/pdf files.
    Thanks

    Okay, let me be specific here.
    I have:
    Adobe Technical Communication Suite 2 fully installed and licensed to this computer.
    I also have an older version of Robohelp 7 installed.
    Both have all the updates done.
    The machine also has:
    MS Office 2003
    and the updated Adobe Distiller program.
    What I want to do is to "print" - IE, generate - a Word document version AND a PDF version of my current Robohelp 8 project.
    (Ignore this part, because this is not the issue. The generation of the files is the issue. Nothing else. The block, and the problem is that I cannot get Word or PDF files to generate from Robohelp 8.)
    What I will do with this is convert the Word doc BACK to Robohelp 7, AND import the Word doc in FrameMaker.
    (But again, we do not care about what I'm going to do with the files. The end result is not important. What is important, again, is:)
    I cannot "print" - IE, generate, a Word document AND/OR a PDF version of my current Robohelp 8 project from the generate dialogue box.
    I'm hoping that this clarifies the issue, since there are no add-ons to what I'm trying to do here. I'm not dancing the angels around the head of the legacy pin, I'm not trying to open a R8 in R7, I'm not trying to cure cancer or shoot a bulls-eye at 1,200 feet.
    I am trying to "print", IE, generate, a Word document OR a PDF from my current Robohelp 8 environment and cannot do so.
    (Sorry for the excessive description, but it looked like we were branching off into realms that weren't the problem at all.)
    In response to Peter - I did try a sample project, and the same issue occurs. When I click "Printed Documentation" in either of the projects, a popup comes up that says "Parameter is Incorrect". This is an unmodified item that I'm opening - stock off the installation.

  • Can I sync my microsoft word and PDF files on my palm?

    I am new to the Plam family and I have a question.  I use my Palm for bussiness as I'm sure most of us do, however can I sync my microsoft word and PDF files into my palm?
      I use contract all the time and I need to view a contract from time to time, I'm not sure how to sync these files on my palm... is the palm windows mobile?
    If I could get as much info as I can about this all the how to's that would be awesome!
    Thanks and I greatly aprecaite it!
    Paul
    Post relates to: Pre Plus p101vzw (Verizon)
    This question was solved.
    View Solution.

    Hey Paul welcome to the Palm forums.
    Your Verizon Pre Plus runs a mobile operating system called HP/Palm webOS.  The current release is 1.4.5.  The phone can connect to a corporate Microsoft Exchange server.  When it does, it uses a sync technology called "Exchange Active Sync," but your phone does not run the Windows Mobile or Windows Phone operating system.
    Syncing Microsoft Office and PDF documents has been sort of an adventure since the Pre debuted over 18 months ago.
    DataViz, the makers of the Doc View application, was partially acquired by RIM, the makes of the BlackBerry, and have decided to not release a full version of Documents To Go for webOS devices.  Palm is working with the makers of QuickOffice to bring full Office document support to webOS in the future.
    For now, if you put Office documents and PDF files in the USB storage area of your Pre, Doc View or PDF will find them and allow you to view them on your Pre.  I put all of my documents in a folder simply called "Documents".
    If you connect the charging/sync cable to your Pre and then attach it to your Mac or Windows PC, you will be given a choice to turn on USB Drive mode.  When you do, you will be able to work with your Pre like you would a standard USB flash drive.  Eject the Pre from your PCs desktop when you are done and you should be all set.
    Hope that helps.
    Alan G

Maybe you are looking for

  • HP G6000 (G6062EA) WONT TURN ON.

    Hi all, This laptop wont turn on at all. When its on battery the blue battery light is flashing as the battery is low and not charging and when you try to switch it on the battery light flashes 3 times and nothing else. When its plugged in with the b

  • My computer had an virous so i wiped it and i need to add my old songs on my ipod to my new itunes but it wont let me without deleting my music

    my computer had an virous so i wiped it and i need to add my old songs on my ipod to my new itunes but it wont let me without deleting my music

  • Itunes Wont Load videos onto Ipod

    hi, i currently have a 60GB ipod video, and now itunes is refusing to load any videos onto my ipod, i tried so many different programs to convert video, eg videora, PQ DVD, and Replay converter etc. and i get the same error, it says video was not cop

  • How to reduce the number of DB calls in Biztalk Map

    Hi, I am using the 1. first scripting Functoid(calling External Assembly)  to fetch the details from DB as comma separated values(1,2,3) 2. Scripting Functoid to apply Inline XSLT temple(which will pick the comma separated value and place it as three

  • Receiving Duplicate Workitems

    When I set the status of a Notification to 'Complete', I receive duplicate work items in my SAP Inbox. I checked the linkages in SWE2 only one Event 'ALLTASKCOMPLETED' is assigned, but when I run trace it is showing that the event and the respecting