DocTextFinderQuadInfo Class Documentation
class DocTextFinderQuadInfoNamespace:datalogics_interface
Detailed Description
A bounding box quad of a character in a PDF file that was part of a string that matched a given regular expression.
Bounding box quad information for a character match, including page number.
Referenced by
Uses types
Constructor & Destructor Documentation
DocTextFinderQuadInfo
DocTextFinderQuadInfo()Default constructor. Produces an empty quad-info object on page 0.
DocTextFinderQuadInfo
DocTextFinderQuadInfo(int page_num, std::vector< Quad > quads)Parameters
page_num: intZero-based page number where the match occurred.
quads: std::vector< Quad >Bounding-box quads covering the match on that page.
Construct a quad-info from a page number and a list of bounding boxes.
Member Function Documentation
get_page_num
int get_page_num()Returns:
intThe zero-based page number where the matching text quad is located.
Gets the page number that the quad was found on.
get_quads
const std::vector< Quad > & get_quads()Returns:
const std::vector< Quad > &A list of Quad objects representing the bounding boxes of the matched text.
Gets the list of bounding box quads for the matched text on this page.