Hello.
It seems that there is a search issue when using spaces inside string. Consider the following situation.
1. Launch PDF Viewer;
2. Select and open a PDF file containing text;
3. Type in a string containing 1 space inside into the search field, e.g. "pro gram";
4. Press [Find next].
Actual result:
The application returns "program" as a search result, i.e. internal space is ignored
Expected results:
Internal space(s) are not ignored, i.e. basing on the scenario - "program" is invalid search result.
Note:
The same result is produced by DynamicPdfViewer.FindFirst(...) and DynamicPdfViewer.FindNext() methods (version 2.0).
Any workaround or suggestion will be greatly appreciated.
Search ignores 1 space inside search string
Re: Search ignores 1 space inside search string
Support · Nov 25, 2009Hello,
We are able to see this behavior when using a space in the search string. We will forward this information over to the developers to look into it further and we will post a message in this forum as soon as we hear something from them.
Thanks,
ceTe Software Support Team.
Re: Search ignores 1 space inside search string
Support · Nov 25, 2009Hello,
You can use the Boolean parameter "match whole word" of the FindFirst method which will search and highlight if the whole word is present including the space. You can select this option while searching using the control's Find window also. You can select this by clicking on the down arrow next to the "Find" word in the Find window.
Thanks,
ceTe Software Support Team.
Re: Search ignores 1 space inside search string
Forum member · Nov 25, 2009Thank you for suggesting the workaround but it is not really the desired behavior.
Re: Search ignores 1 space inside search string
Forum member · Dec 2, 2009So do you consider it as a defect or as desired behavior? Are you going to fix it?
Re: Search ignores 1 space inside search string
Forum member · Dec 2, 2009And let me clarify situation a bit. What we are trying to do is creating our custom PDF Viewer based on DynamicPDFViewer.ocx component. The defect in DynamicPDFViewer.FindFirst(...) function described above is blocking us from creating the desired user experience. Please help.
Re: Search ignores 1 space inside search string
Support · Dec 2, 2009Hello,
We have reported this issue to the developers and they are looking into this. We will post the updates in this forum as soon as we get some information from developers.
Thanks,
ceTe Software Support Team.
Re: Search ignores 1 space inside search string
Support · Dec 23, 2009Hello,
The issue with searching the strings with empty space in it is fixed. Can you please send over a mail to our [^a|mailto:support@cete.com|Support Team^] so that they can give you a link to download the product which has fix?
Thanks,
ceTe Software Support Team.