This code in Tabula.PageArea.GetArea method adds to PageArea instance horizontal ruling from right to lefthttps://github.com/BobLd/tabula-sharp/blob/fe6e6e59be7f44130102737e10000abe1b15b3dd/Tabula/PageArea.cs#L161-L163
.
It leads to situation when Tabula.Ruling.SortObjectComparer order objects in invalid order.
As a result, the list of intersection is returned by Tabula.Ruling.FindIntersections is invalid and result of Tabula.Extractors.SpreadsheetExtractionAlgorithm.FindCells does not contains some cells that it should.
As a fix:
Fix Tabula.PageArea.GetArea method
rv.AddRuling(new Ruling(
new PdfPoint(rv.Left, rv.Bottom),
new PdfPoint(rv.Right, rv.Bottom)));
This code in
Tabula.PageArea.GetArea
method adds toPageArea
instance horizontal ruling from right to left https://github.com/BobLd/tabula-sharp/blob/fe6e6e59be7f44130102737e10000abe1b15b3dd/Tabula/PageArea.cs#L161-L163 . It leads to situation whenTabula.Ruling.SortObjectComparer
order objects in invalid order. As a result, the list of intersection is returned byTabula.Ruling.FindIntersections
is invalid and result ofTabula.Extractors.SpreadsheetExtractionAlgorithm.FindCells
does not contains some cells that it should.As a fix: Fix
Tabula.PageArea.GetArea
method