Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ragaeeb/kokokor/llms.txt
Use this file to discover all available pages before exploring further.
Overview
BoundingBox is used to define the location and size of text elements and structural components within a document coordinate system.Type Definition
Coordinate System
The coordinate system typically uses:- Origin (0,0) at the top-left corner of the document
- X-axis extending rightward (for LTR text) or leftward (for RTL text after normalization)
- Y-axis extending downward
Fields
The x-coordinate of the top-left corner of the bounding box in pixels.This coordinate may be normalized depending on text direction:
- For LTR (left-to-right) text: represents distance from left edge
- For RTL (right-to-left) text: may be adjusted during processing
The y-coordinate of the top-left corner of the bounding box in pixels.Represents the distance from the top edge of the document.
The width of the rectangular area in pixels.
The height of the rectangular area in pixels.
Usage Example
RTL Text Handling
For RTL (right-to-left) languages, coordinates may be normalized during processing:See Also
- Observation - Uses BoundingBox to locate text
- TextBlock - Processed text with position
- PageContext - Page dimensions and DPI