# DocTextFinderQuadInfo Class

> A bounding box quad of a character in a PDF file that was part of a string that matched a given regular expression.

- Product: Adobe PDF Library 21
- Language: Modern C++
- Version: 21.4.0
- HTML page: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/DocTextFinderQuadInfo
- Version index: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/llms.txt

```cpp
class DocTextFinderQuadInfo
```

**Namespace:** `datalogics_interface`

## 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:** [`DocTextFinderMatch`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/DocTextFinderMatch.md)

**Uses types:** [`Quad`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/struct/Quad.md)

## Constructors

### DocTextFinderQuadInfo

```cpp
datalogics_interface::DocTextFinderQuadInfo::DocTextFinderQuadInfo()=default
```

*constructor*

Default constructor. Produces an empty quad-info object on page 0.

### DocTextFinderQuadInfo

```cpp
datalogics_interface::DocTextFinderQuadInfo::DocTextFinderQuadInfo(int page_num, std::vector< Quad > quads)
```

*constructor*

**Parameters**

- `page_num` (`int`): Zero-based page number where the match occurred.
- `quads` ([`std::vector< Quad >`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/struct/Quad.md)): Bounding-box quads covering the match on that page.

Construct a quad-info from a page number and a list of bounding boxes.

## Methods

### get_page_num

```cpp
int datalogics_interface::DocTextFinderQuadInfo::get_page_num() const
```

**Returns:** `int`

The zero-based page number where the matching text quad is located.

Gets the page number that the quad was found on.

### get_quads

```cpp
const std::vector< Quad > & datalogics_interface::DocTextFinderQuadInfo::get_quads() const
```

**Returns:** [`const std::vector< Quad > &`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/struct/Quad.md)

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.
