public RemoveTableText(PDFCore.IdentifyTables parserTable) { var page = parserTable.PageTables; if (page == null) { PdfReaderException.AlwaysThrow("RemoveTableText requires IdentifyTables"); } this._tables = page.AllBlocks.ToList(); }
public AddTableHorizontalLines(PDFCore.IdentifyTables parserTable) { var page = parserTable.PageLines; if (page == null) { PdfReaderException.AlwaysThrow("AddTableHorizontalLines requires IdentifyTables"); } this._lines = page.AllBlocks.Where(l => l.GetWidth() > l.GetHeight()).ToList(); this._background = parserTable.PageBackground.AllBlocks.ToList(); }
public AddTableLines(PDFCore.IdentifyTables parserTable) { var page = parserTable.PageLines; if (page == null) { PdfReaderException.AlwaysThrow("AddTableLines requires IdentifyTables"); } this._lines = page.AllBlocks.ToList(); this._background = parserTable.PageBackground.AllBlocks.ToList(); }
public RemoveBackgroundNonText(PDFCore.IdentifyTables parserTable) { var backgrounds = parserTable.PageBackground.AllBlocks; if (backgrounds == null) { PdfReaderException.AlwaysThrow("RemoveBackgroundNonText requires IdentifyTables"); } var region = new List <IBlock>(); region.AddRange(backgrounds); this._region = region; }
public HighlightTextTable(PDFCore.IdentifyTables parserTable) { var lines = parserTable.PageLines.AllBlocks; var backgrounds = parserTable.PageBackground.AllBlocks; if ((lines == null) || (backgrounds == null)) { PdfReaderException.AlwaysThrow("HighlightTextTable requires IdentifyTables"); } var region = new List <IBlock>(); region.AddRange(lines.AsEnumerable()); region.AddRange(backgrounds.AsEnumerable()); this._region = region; }