Skip to main content
Participant
June 4, 2023
Question

Problem with Search bar PDF document

  • June 4, 2023
  • 1 reply
  • 139 views

Hello, I've created a search bar in Adobe Acrobat using the method in the video below 

https://www.youtube.com/watch?v=wogu8TNUJ8I&ab_channel=BrandonBoas

 

and used this Java code included in the video

 

var textToSearch = this.getField("Search Term").valueAsString; if (textToSearch!="") search.query(textToSearch, "ActiveDoc");

 

However, my document is in Arabic Language and when I search a word in Arabic it doesnt show and instead turns into dots in the search bar... and it works comletely fine with English words..

 

 

Does anyone know how to fix this issue? Is there a way to make it recognize Arabic language using Java ?

 

Thanks in advance!

This topic has been closed for replies.

1 reply

BobLevine
Community Expert
Community Expert
June 4, 2023

Ask in the Acrobat forum. This certainly can't be done in InDesign and keep in mind, with the number of third party PDF readers out there, adding things like this to a PDF is crapshoot.