SetaPDF_Extractor_Sorter_FlexLine A sorter class that sorts lines by comparing text items on their baseline and a threshold factor.

File: /SetaPDF v2/Extractor/Sorter/FlexLine.php

This sorter is not able to detect if an item lays on top of another one!

Class hierarchy

Summary

Properties

$_matrix

A temporary matrix used in the sort process.


Methods

groupByLines()

Groups all text items by lines.

Parameters
$textItems : SetaPDF_Extractor_TextItem[]

The text items

horizontallyThenVertically()

itemsJoining()

Checks if two items joining each other.

Parameters
$prevItem : SetaPDF_Extractor_Result_CompareableInterface

The left item.

$item : SetaPDF_Extractor_Result_CompareableInterface

The right item.

$spaceWidthFactor : float

The space width factor.

verticallyThenHorizontally()