Skip to main content
Participant
September 9, 2020
Answered

access search programmatically

  • September 9, 2020
  • 2 replies
  • 1611 views

Good Morning,

 

Is is possible to access the search function in the Embed API programmatically?  I would like to seed the search term and trigger a search automatically when the document is opened.

 

Thanks.

 

This topic has been closed for replies.
Correct answer brajeshk12751679

Yes, Seach API will be available very soon in Embed APIs. I am expecting it to be available as early as next month i.e. October.

2 replies

brajeshk12751679Community ManagerCorrect answer
Community Manager
September 10, 2020

Yes, Seach API will be available very soon in Embed APIs. I am expecting it to be available as early as next month i.e. October.

Joel Geraci
Community Expert
Community Expert
September 10, 2020

Excellent!

Joel Geraci
Community Expert
Community Expert
September 9, 2020

At this time, there is no search API. Can you elaborate on your use case though, I think if we were to add that capability, your input would be valuable.

HiltyJAuthor
Participant
September 9, 2020

I would like to automatically scroll the user to a specific location within a PDF contract document: i.e. 'Section 5.2'.

 

Currently, I can do this by opening to the specific page in the PDF and then scrolling an apropriate number of pixels down that page. However, as the contract document is modified over time, the appropriate page and/or pixel scroll value will no longer be valid, but a text search for 'Section 5.2' would always get the user to the right spot so long as that text still exists.

 

If there are any other ways to jump / scroll to a specific destination with an embedded PDF, I would be interested to know.

 

Thanks  

Joel Geraci
Community Expert
Community Expert
September 9, 2020

Ok - That's absolutely possible. We have recently gone to beta with an Extract API in the PDF Tools SDK. Extract will return a JSON object that contains the extracted text as well as the page and coordinates of that text area. You can leverage that JSON to drive an experience in the Embed API using the goToLocation API call. I'm developing a demo of exactly the use case you describe. If you contact me directly, I can show you what I have so far.

 

https://medium.com/adobetech/extract-content-structure-from-pdfs-using-ai-powered-adobe-pdf-extract-api-1593ad6b79b5