> On 18 Mar 2022, at 23:09, Christiaan Hofman <cmhof...@gmail.com> wrote:
> 
> 
> 
>> On 18 Mar 2022, at 22:45, Jan David Hauck via Skim-app-users 
>> <skim-app-users@lists.sourceforge.net 
>> <mailto:skim-app-users@lists.sourceforge.net>> wrote:
>> 
>> Hi all, 
>> Is there a way to do a search in a PDF with an AND operator? 
>> In the search field, when checking “whole words only” it returns all pages 
>> with any of the words in the search field. 
>> With “whole words only” unchecked, it tries to find the exact phrase in the 
>> search field. 
>> I’m trying to find a way to search for pages that contain word A and word B  
>> (not either word A or word B). 
>> Help much appreciated.
>> Jan
> 
> No, that is not supported. You should realize that it searches for strings, 
> not for pages.
> 
> Christiaan
> 


Looking at our code, I realized that it still attempts to combine hyphenated 
words. It just fails, because PDFKit seems to insert spaces between the lines, 
rather than newlines, so we did not see the hyphens at the end of the lines. I 
have replaced this by looking for lines in the layed out text, rather than just 
the strings, with hyphens at the end, and that seems to be working well.

Christiaan

_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to