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
Filters out horizontal lines that are contained within any of the provided rectangles. This is useful for removing header/footer lines that appear within document sections while preserving lines that mark true document boundaries or section separators.Signature
Parameters
Array of rectangles to check containment against
Array of horizontal lines to filter
Pixel tolerance for boundary checking
Returns
BoundingBox[] - Array of horizontal lines that are NOT contained within any rectangle
What It Does
Filters the horizontal lines array to exclude any lines that are contained within rectangles. This helps boundary detection ignore lines that appear inside headings, callouts, or other boxed content.Usage Example
Related Functions
- getLastHorizontalLineY - Uses this function to find footer boundaries
- isBoundingBoxContained - Used internally for containment checking