Search results highlighting  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Post Reply
PeeblesHistoricalArchive
User
Posts: 7
Joined: Fri Jan 17, 2025 6:46 am

Search results highlighting

Post by PeeblesHistoricalArchive »

Search results highlight.jpg
Ideally, I'd like search to highlight just the extents of my text object, rather that the whole auto-grouped text box.
Is there an option that I've missed which would allow this?

Sometimes it works as intended and an individual advert is highlighted as hoped, but other times, remote (non-adjacent and well separated) text objects seem to be getting pulled into the orbit of other text objects, resulting in a larger and unwanted combined highlighted area.

It would be great if there could be a user-specified choice between 'grouped-textbox extents' and 'object-textbox extents' for search result highlighting.
User avatar
David.P
User
Posts: 1637
Joined: Thu Feb 28, 2008 8:16 pm

Re: Search results highlighting

Post by David.P »

To my knowledge, this happens automatically due to spacial proximity of text objects on the page. For finer control over what is selected/highlighted on selection I'd recommend the "Edit Content" tool, not the "Edit Text" tool.
David.P
PDF-XChange Pro
PeeblesHistoricalArchive
User
Posts: 7
Joined: Fri Jan 17, 2025 6:46 am

Re: Search results highlighting

Post by PeeblesHistoricalArchive »

By way of illustration, these two images show the desired behaviour and also the apparent randomness of the frustrating auto-grouping of text items.

Here with Moffat, you'd think it would be auto-grouped, but it isnt.
Moffat.jpg
Similarly, Williamson is unaffected, so I don't understand why Hunter is different!
Williamson.jpg
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10910
Joined: Wed Jan 03, 2018 6:52 pm

Re: Search results highlighting  SOLVED

Post by Daniel - PDF-XChange »

Hello, PeeblesHistoricalArchive

To investigate this at all, we will need a copy of your document, however, David is correct here, use of the "Edit content" tool will ensure there is not auto-grouping of the text content, what you see with that tool enabled is the actual "text-content blocks" as they exist in the structure of the document.
In a PDF there is no concept of paragraphs, even lines of text are questionable at best, sometimes a single letter may be one object other times, a whole word, sometimes the latter half of one word, the next 3 words, and the first letter of the 5th word can all be one object, meanwhile, each other letter in the first and 5th words could be a separate object on their own.

This is why automatically assuming these groupings is so important to the use of not only editing features, but also the search functions. As such, I am sorry to say it is simply not possible to disable this entirely, the best we can offer is the Advanced Search function (Ctrl_Shift_F) which allows you to specify the proximity to some degree.
image.png
With that said, the default value "adjacent words" should be the same as the find function; both use the same assumed "text-block" logic as the edit text tool does.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply