trouble with searching word (Exact match) in adobe using search API
Hi All,
I am using adobe search APIs to search for a team in the PDF programmatically.
I am passing search_string = "all", but it is searching 'allow' also. I want to search only keyword 'all'.
I tried with regexp, but it is throwing error: "Invalid_Input: Only string input is allowed".
I am using below code for search functionality.
document.addEventListener("adobe_dc_view_sdk.ready", function()
{
var adobeDCView = new AdobeDC.View({clientId: "<YOUR_CLIENT_ID>", divId: "adobe-dc-view"});
var previewFilePromise = adobeDCView.previewFile({
content: {location: {url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf"}},
metaData: {fileName: "Bodea Brochure.pdf"}
}, { enableSearchAPIs: true });
previewFilePromise.then(adobeViewer => {
adobeViewer.getAPIs().then(apis => {
apis.search(<SEARCH_STRING>)
.then(searchObject => console.log(searchObject))
.catch(error => console.log(error));
});
});
});
Kindly Help me to solve this issue. I am stuck here.
