Team,
#viewer")Team,
#viewer")Hello,
We are sorry to hear that you have such issue. We have checked your code with our PDF document and the search works well for us as shown on this screenshot (you can see your text and the PDF document with the searched word).
Please try to use such option:
.SearchForSeparateWords(true)
If this will not help you, please share with us an example of your document with which the search doesn’t work so we can check it (it could be that the issue is document‑related).
Also, in the attachment you will find our example of the PDF—please try the search functionality with it to ensure that it works.
Thank you.
Thanks for the quick turnaround. Unfortunately we are still unable to search the document with the config settings from your email. Please find the attaced CodePage and the documents used for testing the search feature. Let us know if we are missing something.
Hello,
Thank you for the example. As we know from the live‑chat you have this issue with a PDF document, but the example you shared is an XLSX file. We have checked it and the search works well. Since then, please share with us exactly the same PDF document with which the search doesn’t work.
Also, we have checked the server‑side code and found that you missed (these code lines are commented) the line that sets the root storage for the Viewer. This step is very important. Please use the following code:
Groupdocs.Web.UI.Viewer.SetRootStoragePath(Server.MapPath("~/testfiles"));
Simply change the folder name.
Thank you.
Hello,
As discussed i could not share the solution because of our Organization Security policies.
1 count, Nullable1 width, Nullable1 quality, Boolean usePdf, Nullable1 preloadPagesCount, Boolean convertWordDocumentsCompletely, String fileDisplayName, String watermarkText, Nullable`1 watermarkColor, WatermarkPosition watermarkPosition, Single watermarkWidth, Boolean ignoreDocumentAbsence, Boolean supportPageRotation, Boolean supportListOfContentControls, Boolean supportListOfBookmarks, Boolean embedImagesIntoHtmlForWordFiles, String callback)Hello Njanke,
Thanks for the details. The UseHtmlBasedEngine(false) is already set. Even then we are getting this issue. Is there any other work around for this?
Hi again,
Hi Team,
Now the search on the document when rendered in image format is working after removing the property setting “//.SupportTextSelection(false)”.
Hello Nikunj,
Best regards
Evgen Efimov
http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+