How to search a word and its page in Acrobat 6.0 using vb6.0

Hi all,
I would like to search a word and its corresponding page number in my PDF document. The word may be occur in many of the pages and i have to collect all the page numbers and need to create bookmark for all of them.
Eg: The word "Chennai" can be found in the pages 5, 6, 7 and10. Then I need to create bookmarks Chennai1 - Page 5, Chennai2 - Page 6 and so on...
I have tried this with Acrobat 7.0 professional and it was working fine. But in 6.0 Professional i am not able to collect all the pages. Below I have given the code that i have used.
Dim objFind As Acrobat.CAcroAVDoc
Set objFind = CreateObject("AcroExch.AVDoc")
Do While objFind.FindText("MyText", 0, 1, False)
                Dim objPageView As Acrobat.CAcroAVPageView
                Set objPageView = objFind.GetAVPageView
                strPageNo = objPageView.GetPageNum + 1
                If strPageNo = strPrevPageNo Then
                    intIncremental = intIncremental + 1
                Else
                    intIncremental = 0
                End If
                If intIncremental > 50 Then
                    Exit Do
                End If
                If Val(strPageNo) < Val(strPrevPageNo) Then
                    Exit Do
                End If
                strPrevPageNo = strPageNo
Loop
Thanks in advance,
Dhanasekaran. G

Adobe no longer supports Acrobat 7 or earlier.

Similar Messages

  • How to search a word in a 2d array

    Hi, i'm seeking advice on how to search a word in 2d array. The method will only taking one argument string and will search in row by row, column by column and diagonall down and up. for example, user input String "SEEK" or then the method will have different search pattern to locate the word. Here is the 2d array look like.
    S + K E E S + +
    E + + + + + + K
    E S + + + + + E
    K + E + + + + E
    + + + E + + + S
    + + + + K + + +
    What i've done so far is;
    // this loop is for search SEEK column by column
    public boolean finder(String w){
    for(int j = 0; j < puzzle[0].length; j++) {
    for(int a = 0; a < w.length(); a++) {
    char n = w.charAt(a);
    String r = String.valueOf(n);
    if (puzzle[0][j] != w.charAt(a)) {
    return false
    } else {
    return true;

    read this

  • How do I make Word and Excel Documents readable to PC users that cannot open them

    How do I make Word and Excel Documents readable to PC users that cannot open them

    Be sure to save them in the Office 2007 format as .doc or .xls files.

  • How to print the Terms and Condition page ine the sap-script

    Hi experts,
                             i got the requirement that how to print the Terms and condition page in the script,i have the three pages, having the same main window, in the last of the main window(all three pages)  i have called the hard coded text(i.e so10 text), but when i am displaying the output  data get printed in the first page but i am getting the second page heading on the top of  the terms and condiions page. In all the three pages i  have the same main window, if i  make change in any window i will affect all the other main  windows.  so please suggest me how i need to go.HOW TO GET GRID OF THE TEXT ON THE TOP OF THE SECOND PAGE OF THE TERMS AND CONDITONS.
    like this i have called in the MAIN WINDOW
    /E : LAST ( IN ALL THREE PAGES)
           INCLUDE ZSD_INVOICE_TERMS TEXT OBJECT TEXT LANGUAGE EN.
    IN THE TCODE SO10
    NEW PAGE TERMS.
    1) TERM MS AND CONDITONS  TEXT.................................................
    FIRST->NEXT, NEXT->NEXT,,   TERMS--->TERMS.

    Hi,
    1. Create a new page by Name : LAST
    2. Identify the text element which will be the last element in the form in the debug mode.
    Mostly Ex: SUM, TOTAL, LAST etc.,
    3. the page linking should be
    First --> Next
    Next --> Next
    4. In the Text element identified in the step 3.
    Write the following code
    /: NEW PAGE  LAST
    /: INCLUDE the standard text created for the terms and conditions in SO10
    Check the syntax for the command but the logic will be the same.
    It should resolve your problem.

  • How do I add word and pdf docs in an existing pdf doc?

    How do I add word and pdf docs in an existing pdf doc?

    Or https://createpdf.acrobat.com/

  • How do I export words and definitions from the glossary widget in C7?

    How do I export words and definitions from the glossary widget as XML? I need to use the same glossary in several projects. When I copy and paste the widget to a different project about 1/2 of the definitions disappear. Figured I would try exporting the words then importing them back in new glossaries in each project. Using 7 on a Mac.

    Yes i read, and the answer to the main question is still the same, you cannot export, you just can import definitions if you previously have structured them into an xml file. So, first of all it would be useful to warn the user to ALWAYS start from an xml file BEFORE starting populating the glossary. Furthermore, not all users are supposed to manage easily an xml editing, and the widget itself has been programmed to insert the definitions with a simple method, so it would be necessary also to have an instrument to export to xml for importing purpose. Storyline has the same lack, you cannot move glossary from one project to another but you are forced to start from an old project or insert the glossary itself into a master project. You will agree with me that an xml export feature is not something so difficult to add for the widget. In my personal example, i added about 200 definitions, then i discovered that the glossary of captivate 7 does not work well in html5, the new one in captivate 8 is little bit better, but still not working on chrome (at least on ipad it shows, but you cannot show a button over it since it goes always on the top of everything, so at the moment i inserted a big transparent square behind it to close everyting like a lightbox). This widget is still very buggy and need to be improved.

  • How to upload the image and diplay the image in the browser using jsp

    How to upload the image and diplay the image in the browser using jsp
    thanks
    shan

    i'll suggest looking for sample code or tutorial with a relevant query in google, which as far more time than us to answer this type of reccurent question

  • How to make a Word for Mac 2008 doc into a PDF using Acrobat Macintosh

    Any ideas how to turn a Word for Mac 2008 document into a PDF using Acrobat Pro?
    Thank you if you can help.

    In Word  2008 for Mac:
    go to Save As... from File menu.
    when window open click on Button show the current file type.
    when thi menu drops down you will see the following
    Choose PDF
    save.
    Then open up in Acrobat.

  • In Pages document, how do I search for word and view its frequency and page numbers in a sidebar?

    I have a long document and I want to be able to search for certain key words and phrases, and then see how many times they appear in the document and exactly where.  How do I conduct this sort of search and viewing?  In the past, in Pages and Word, I've been able to view my "finds" in a sidebar but I can't figure out how to activate that service anymore.
    Thanks!

    Here is a word frequency concordance Automator Service that works in both versions of Pages. It does not present a page number reference. It is by descending count, and alphabetically, within the repetitive counts as shown in the image here. In any document, you select the text to process, then Menu > Application Name > Services > Frequency. The Service will open TextEdit with the n-pages of scrollable results. It is 16 pt Helvetica Neue for legibility.
    Here is the code:
    on run {input, parameters}
         try
              set mySelection to input as text
              set formatted_result to concordance(mySelection)
              if formatted_result is not null then
                   set textHeading to "Word Frequency List"
                   tell application "TextEdit"
                   activate
                         set NewDoc to make new document with properties {name:"Concordance"}
                         make new paragraph at beginning of text of NewDoc with data textHeading & return
                         make new paragraph at end of text of NewDoc with data formatted_result
                         tell text of NewDoc
                               set font to "Helvetica Neue"
                               set size to 16
                               set color of paragraph 1 to {0, 0, 65535}
                         end tell
                        end tell
              else
                        display dialog with title ¬
                         "No input selected" with icon stop ¬
                          giving up after 15
              end if
         on error errmsg number errnum
                    display alert ¬
                               "AppleScript Error" message errmsg & "[" & errnum & "]" as critical ¬
                                  giving up after 30
         end try
         return input
    end run
    on concordance(mySelection)
    -- Use Ruby to count word frequency and alphabetically sort words
        set rb to ¬
        "selected = String.new\nfreqs = Hash.new(0)\nselected = ARGV.join('  ').gsub(/[,.]/, \"\")\n
         words = selected.split(/[^\\w-]+/)\nwords.each { |word| freqs[word] += 1 }\n
         freqs_sorted = freqs.sort do |a,b|\n\t
         a.last == b.last ? a.first <=> b.first : b.last <=> a.last\nend\n
         freqs_sorted.each { |k,v| printf \"[ %8s ]          %s\", v, k }"
        do shell script "/usr/bin/ruby -e " & rb's quoted form & space & mySelection's quoted form
    end concordance
    Launch /Applications/Automator and choose New Document, then click the Service icon, and then select the Choose button.
    On the left, you will have a list of Libraries from which to choose workflow items. Find Library > Utilities. In the adjacent column, locate the Run Applescript workflow. Click on it, then drag and drop it in the large workflow window to your right.
    At the top, you can select Service receives text in any application. Leave Output replaces selected text unchecked.
    In your Run AppleScript workflow window, you will see AppleScript boilerplate. Click on it and press command+A, then backspace to delete this content. Copy and paste the above code into this Run AppleScript workflow window. Press the Run button in Automator's upper right corner. If (and it should) a TextEdit window pops up, you are good, and you want to press File > Save. A dialog box will pop-up where you can name your Service. I called my Frequency, you may wish to call it something else. Once you have save it, you can exit Automator. Services are deposited in yourlogin directory/Library/Services.
    If you have a Pages document open with text, either select it, or command+a to select the entire document. Now, you select your Service via Pages > Services > Frequency. This will now pop-up a new TextEdit document with the results. If you want to save this new document, you must use option+File to Save as...

  • How can I search a word on a page?

    Such a lapse, Johny, I can't even believe

    Touch the URL field at the top of the page, type your word and a list of possible searches will be shown. Near the bottom of this list will be "On this page" which shows hits on the page (if any). Touch this and you will be taken to the first match.

  • How can i save word documents to pages? I have an illegal copy of word but want to upgrade my software so I can utilize i cloud.  I'm a writer and need to preserve my word documents.

    I have an illegal copy of word and I want to upgrade my software so I can utilize i cloud.  How can I save my word documents to pages
    so that they are not lost in this upgrade?  I do not have the disk to reinstall word after the upgrade.

    You might want to post your question in the Pages forum. https://discussions.apple.com/community/iwork/pages
    Also if it's the Office 2004 version of Word it won't work in Lion since it's a Power PC program. Office 2008 will work in Lion if it's already installed when you upgrade. But it won't install on Lion because the installer program uses Power PC code. Office 2011 is the only one that will install and work on Lion.

  • How to find a word and copy the phrase containing the word without using the mouse

    I am using a macro to fill in a form and select fields in the form. The fields are titled and i want to use the field title to select the field and thus need to copy the name to compare with the search text and tab to the next requested field.

    Ctrl+f opens the search in page feature. However, the result is not automatically selected and ready for copying. And since you already typed the query, you wouldn't really save any time that way...
    Firefox has some accessibility features you could explore: [[Accessibility features in Firefox - Make Firefox and web content work for all users]]. These include placing a movable cursor into the page, or searching/selecting using / and other possibly useful items. Maybe between them you can find a good workflow. If not, maybe an add-on?
    ''Edit: Here's an example of how to select the word accessibility in this post:''
    Type:
    /acce
    Press:
    Esc, Ctrl+Shift+right
    ''Edit: Actually it works with Ctrl+f as well, and that might be better if the word is common so you can use Next/Previous.''
    Press:
    Ctrl+f
    Type:
    acce
    Press:
    Esc, Ctrl+Shift+right

  • How to send a word and excel attachments with a 8830

    I am trying to figure out, how I can send a new message with an attachment (doc or xls) from my media card using my 8830 .
    I have tried to compose a new message, tried to attach file option but cannot select the doc file on my media card or my blackberry device. Need some suggestions.

    Find and Replace....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "asli" <[email protected]> wrote in message
    news:ekki09$5m2$[email protected]..
    > hello,
    >
    > i just finished implementing a new website. I have about
    20 pages and lots
    > of
    > content. Last second, I am told that they need to change
    one word with
    > another
    > through out the website. Since there's so much text
    content, I was
    > wondering if
    > Dreamweaver has a feature like the Microsoft Word, in
    which I could type
    > in
    > that word and automatically replace it with another -
    through out the
    > page.
    >
    > Thnx
    >
    > Ash
    >

  • How to find a word and replace with another

    hello,
    i just finished implementing a new website. I have about 20
    pages and lots of content. Last second, I am told that they need to
    change one word with another through out the website. Since there's
    so much text content, I was wondering if Dreamweaver has a feature
    like the Microsoft Word, in which I could type in that word and
    automatically replace it with another - through out the page.
    Thnx
    Ash

    Find and Replace....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "asli" <[email protected]> wrote in message
    news:ekki09$5m2$[email protected]..
    > hello,
    >
    > i just finished implementing a new website. I have about
    20 pages and lots
    > of
    > content. Last second, I am told that they need to change
    one word with
    > another
    > through out the website. Since there's so much text
    content, I was
    > wondering if
    > Dreamweaver has a feature like the Microsoft Word, in
    which I could type
    > in
    > that word and automatically replace it with another -
    through out the
    > page.
    >
    > Thnx
    >
    > Ash
    >

  • How to resize a document and its contents?

    I'm having some trouble resizing a single page, and a single part of that page, on my document.
    First the details: My page dimensions are 800 x 1200. On top of that black background, there's textured layer measuring 760 x 130 at the top (for website's name/logo/misson statement) and 760 x 990 below (for site's content and graphics). There are 20 px borders (between textured layer and background) at the top and sides, and 10 px border at the bottom. The 50 px gap between the top and main textured areas is for the navigation bar.
    Now the problem: I want to resize just one page to 800 x 1250 px. And to complicate things, I only want to grow the bottom part by those 50 px, so that that textured layer measures 760 x 1040  (I have to add something to that page's main content, so I don't want to affect the size of either navigation bar or site's name/logo).
    Adobe instructions (http://help.adobe.com/en_US/Fireworks/10.0_Using/WSAE41683F-ED20-4488-9389-79DC28BD7CE0.ht ml) haven't been much help. I go to Modify > Canvas > Image Size, change to 1250 pixels, click off "constrain proportions" and click on "resample image" and "current page only." When I do that, it does enlarge both the black background and the textured layer to the size I want. But it also:
    1. Changes the entire page -- that is, it grows the nav bar and logo areas as well as the main content section.
    and, strangely,
    2. The textured layer on my two dozen other pages grows, but not the black background. In other words, I change both the background and layer size on the page I want to modify, but I inadvertently grow only the textured layer (but not background) on all of my other pages. (So the texture on all of those other pages now spills off the black background.)
    So my question: How can I resize only the main content's background and textured layer on one page? Is it even possible?
    Many thanks to anyone who can help. And my apologies for the lengthy explanation.  But I'm new to webdesign and Adobe Fireworks, and I wanted to be as clear as possible about the problem.
    PS If it matters, I'm using Fireworks CS4

    Thank you, Pixlar. However, I couldn't adjust the rectangle as you suggested, as it was on my master page. That was the problem I was having: Both the canvas and the texture layer I put on it (ie, the rectangle) were on the master page. I wanted to change the dimensions of both canvas and rectangle on only one page. Following Jim's suggestion, I was able to change the canvas, but not the rectangle (at least,not without adjusting the master page, which would have affected the layout of twenty other pages).
    I finally decided to follow your other suggestion: Delete the old one and start over.
    Thank you again for your help. Nice having a forum like this to turn to.

Maybe you are looking for

  • Numeric value

    im using ECC 5.0 , here during BOM creation my ratio of FERT and ROH is 1:1.82 but when i put this value 1.82 there system gives me below message Enter a numeric value Message no. 00052 Plz help mei want to put value of 1.82 but system not allowing m

  • How to Report on Hourly Basis from BW in HH-MM(not on 0calday)

    Hi Pals, I need suggestions as my current user wants to report on every 2 hours(and staged into BW ODS) based on Time(HH-MM). Though we can bring details in BW on every 2 hrs but the issue is how to bring the Time characteristics in HH,MM. Requiremen

  • PA OM inconsistency

    PA OM inconsistency Hi, I am trying to move some positions and persons from organisation structure through PPOME transaction. When I move person from one position of one org unit (which has one personal area and personal sub are) to another org unit

  • No icon for Photoshop Elements 13

    We have an iMac Yosemite and the installation of Premiere elements was fine.  But Photoshop Elements, though it said it installed successfully, does not have an icon so we can't access it. Any suggestions please.

  • CUCM License counting and Alarm configuration with SMTP

    Hi All UC Experts, After the CUCM version 9 happened, the CUCM will become trail 60 days when the used UCL license is over. Is it possible to set a SMTP alarm to inform the admin to purchase the UCL ASAP? I checked the SMTP host configuration: If you