SetaPDF_Extractor_Filter_Rectangle A rectangle filter.
This filter allows you to define a rectangle which is used to filter text items. This filter automatically takes care of rotated pages/coordinate systems.
The origin of the coordinate system is the lower left throughout.
This mode says that the text item has to contact the rectangle of this filter instance through any point or intersection.
This mode says that the whole text item has to be contained by the rectangle of this filter instance.
The filter can work in 2 modes, which can be controlled by the 2nd paramter of the constructor:
1. MODE_CONTACT: This mode will match tangent items. 2. MODE_CONTAINS: This mode will match if the rectangle contains the whole text item.
- $rectangle : SetaPDF_Core_Geometry_Rectangle
The rectangle to filter by.
- $mode : string
A mode constant.
- $id : null|string
Method that is called to decide if a text item accepted or not.
- $textItem : SetaPDF_Extractor_TextItem
Get the rectangle.
- $ignoreRotation : bool
Whether to ignore the rotation or not.
Get the current rotation.