Skip to main content
Participating Frequently
June 11, 2016
Question

Where can I find and install the Adobe Search Plug-in?

  • June 11, 2016
  • 3 replies
  • 4202 views

Wow, am I frustrated!!  I can't believe I can't find how to get and install the Adobe Search Plug-in so I can leverage the Search Object in my code.  .FindText has been too unreliable for me and after researching for hours, I finally learned about the Adobe Search Plug-in that seems like it overcomes all the problems with .FindText.  But nothing online or in the Acrobat SDK help documents mentions where I get it from.  I have the latest version of Acrobat Pro DC and the SDK.  Anyone know where I get it?

This topic has been closed for replies.

3 replies

Legend
June 11, 2016

Could you post a link to the info which seems to lead you to this being a solution to all your issues?

Legend
June 11, 2016

Ah, is it this:

 

The Adobe Acrobat Search plug-in allows users to perform text searches in PDF documents. It adds menus, menu items, toolbar button, and a Search panel to the Acrobat viewer.

The Search plug-in exports a Host Function Table (HFT) containing several methods that can be used by other plug-ins.

If so, then you can use this API if you are writing a plug-in in C/C++. However, from your post, we assume you are NOT writing a plug-in.

Karl Heinz  Kremer
Community Expert
Community Expert
June 11, 2016

Just to expand on Bernd's answer, when you go to "Adobe Acrobat>About Adobe Plug-ins" on a Mac, or "Help>About Adobe Plug-ins" on Windows, you will get a list of all installed plug-ins from Adobe:

You cannot search in Acrobat without that plug-in being present and active. It does not matter if you are using search/find from the user interface of the AVApp.FindText method from the IAC API, it's always the search plug-in that does the actual work. I understand that you are not satisfied with what the FindText method is providing, because the user interface allows you to do a lot more, but unfortunately, that's the only API function we have in the IAC API to search. Unfortunately, there is also nothing in the Javascript API, otherwise you could use the JSObject to access JavaScript functionality, but that does not help in this case either.

Participating Frequently
June 11, 2016

Thanks Karl,

But I'm still stuck.  BTW, it's Help->About Adobe Plugins..., not File->About Adobe Plugins.  Maybe I was confused here because it says "Not Loaded" in the about dialog.  So, I guess it is installed, but I still don't know how to load it.  I've got the full API document, but nothing in it tells me what file to reference, how to create the search object, or how to browse the classes, etc..  Let me give you an example using VBA:

Sub FindMyText()

     dim MySearchObject as Object   ' What can I put here to be more specific than just Object?  I've searched everywhere

                                                          ' and can't find an answer.

     Set MySearchObject = ?????      ' What do I put in here in place of the question marks? 

                                                          ' E.g. what is the class ID for the search object?

End Sub

I've referenced every dll, lib, and ocx I could find on my computer that was related to Adobe.  But nothing gives me a search object and I can't find any of the methods, etc., when I search with the object browser.

But, what's most frustrating, is that I can't find any Adobe documentation, public blogs, or discussion groups that answer the question.  I do find the same question asked a lot, though.

My dissatisfaction with FindText (BTW, I'm using AcroAVDoc.FindText, not AVApp.FindText; are they the same thing?  I can't find any such object/class named AVApp), has nothing to do with the UI features; it simply isn't reliable.  There are several posts, including mine, on the web and in this community asking about the problems, but they are never answered.  E.g., there are at least two posts on here about FindText never returning that have not been answered.  There's also several posts elsewhere about how FindText finds the wrong text.  I've experienced both problems enough that I need to find an alternative.  In my current project, I'm trying to search through large PDF files for the text "Subject:".  But in one case, it finds and selects the word "of"; in another, it finds and selects some random dots in a graphic.  When I do the same find on the same document using the UI, it says it can't find the text. 

Why do  you say the JSObject won't help?  The JSObject.GetPageNthWord() function does a great job.  It's just too slow.  Also, the Search Object documentation in the Acrobat API Reference, documents a lot more functionality than just FindText. 

Also, another problem I haven't been able to solve using FindText is a reliable way to know when you've reached the end of the file in your search.  There are other posts, unanswered, on here about this problem too.  One calls it the infinite loop.  The best solution I've found so far is to check the page number after each find if if the page number is less than the previous page number, I know I've passed the end and wrapped around to the beginning.  But this fails if the search text exists twice, but only on the last page of the document.  I can't seem to get an answer from anyone on this problem too. It would be nice if there was some sort of function that would tell me what word I'm on, not just what page.  E.g., JSObect.GetPageWordNum().  Or even if there as a call I could make to retrieve the rect that contains the word found, I could work with that.

My biggest issues is that the only place I can get support for the Acrobat API is in the community.  Adobe promotes it as "Ask the Experts," but I rarely get any response to most of my postings.  For some reason, I got lots of responses to this one. :-)  If Adobe wants us developers to write applications to help sell copies of Adobe Acrobat Pro DC, they need to give us access to APIs that work as reliably as the ones they use in their UI, and give us better support.

Enough of my soapbox; can you help me?

Participating Frequently
June 11, 2016

Here's a link that provides example code of using JSObject to do finds, it also mentions the reliability issues with FindText.  PDF Search Through VBA ~ My Engineering World

Bernd Alheit
Community Expert
Community Expert
June 11, 2016

It is part of Adobe Acrobat.