As a user, summing locations and offsets prior to rounding will produce a more accurate highlit box.
Upon successfully finding a string through the search function in the PDFText.cpp sample for ImageGear pro v19, a highlit box is superimposed above the found word. The current sample rounds the individual horizontal and vertical coordinates for each corner and the page offset from the left and bottom before adding them together. The code sample should add the coordinates and offsets together before rounding the result. This produces a more accurate highlight.