4 Replies Latest reply: Sep 30, 2009 1:09 PM by Patrick Leckey RSS

    any plugin api to find text ?

    arvindg007 Community Member

      Hi

       

      Is there any plug-in api to find text in the pdf ? . In the acrobat_pdfl_api_reference.pdf, I don't see the description and function definition of

      PDFindText.

       

      So, I want to know how we can find text using the plug-in code ?

       

      Regards,

      Arvind

        • 1. Re: any plugin api to find text ?
          lrosenth Adobe Employee

          There are rich APIs for searching in a PDF via the SDK.

          • 2. Re: any plugin api to find text ?
            Patrick Leckey Community Member

            Look at the PDWordFinder or PDEText areas of the SDK, depending on which one suits your purpose best.  There is also a PDWordFinder sample in the SnippetRunner included in the SDK download.

            • 3. Re: any plugin api to find text ?
              arvindg007 Community Member

              Hi,

               

              I want to simulate find Text , find next feature in my application. And I think Acrobat Plugin will have some api similar to iac_api named

              CAcroAVDoc::FindText. But I didn't find in the plug-in reference document.

               

              And I also looked PDWordFinder sample code but looks like to simulate findtext thru this , we need to scan whole document first and then compare the word and then we need to highlight it. So good amount of code, I have to write to simulate FindText.

               

              So don't we have any other way or api by which we can simulate FindText, Find next  easily . And also I want to know which plugin api use PDFindFlags (mentioned in the plug-in reference document).

               

              Please let me know your inputs.

               

              Regards,

              Arvind

              • 4. Re: any plugin api to find text ?
                Patrick Leckey Community Member

                I guess it depends on your definition of "a good amount of code".  I believe the PDWordFinder sample in the SDK is barely over 100 lines (for the functional parts, not including the generic setup required for any plug-in).

                 

                If you want something that will find and highlight words in 3 lines, but with MUCH less control over the search and what you can do with the results you should check out the IAC section of the SDK.