Skip to main content
cmsuds
Participant
April 12, 2018
Answered

create permanent search bar in documents

  • April 12, 2018
  • 1 reply
  • 3104 views

I'd like to be able to add a search bar within a pdf so that when the viewer opens the pdf, the search bar is always there to search the content.  Is that possible?

This topic has been closed for replies.
Correct answer Thom Parker

Yes, this can be done, but searching is an Acrobat Feature, not PDF. This search bar won't work in other viewers, or on mobile.

There are a number of ways to do this, from simply activating the Acrobat Search menu item to performing a full text search with Acrobat JavaScript.

The easiest method is to create a button, and use the "execute a menu item" action with the "Edit > Find" menu item.

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
April 12, 2018

Yes, this can be done, but searching is an Acrobat Feature, not PDF. This search bar won't work in other viewers, or on mobile.

There are a number of ways to do this, from simply activating the Acrobat Search menu item to performing a full text search with Acrobat JavaScript.

The easiest method is to create a button, and use the "execute a menu item" action with the "Edit > Find" menu item.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
cmsuds
cmsudsAuthor
Participant
April 12, 2018

Thanks so much.  I think this will work for what I need.