Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsCalcPdfHitRectsJob Structure

Calculate hit locations in a PDF file to highlight after a search.

File: dtsearch.h

Syntax
C++
struct dtsCalcPdfHitRectsJob : public dtsJobBase { dtsSearchResultsHandle hSearchResults; int resultsItemIndex; const char * inputFile; dtsIntArrayHandle hitRectsArrayHandle; int dataFormatRequested; };

dtSearch returns hit locations as word offsets after a search. Use dtsCalcPdfHitRectsJob to convert these word offsets to PDF page coordinates. The PDF page coordinates are returned as an array of integers. This data can then be used with dtsFileConvertJob to add hit highlight annotations to a PDF file for display.