public AddTableHorizontalLines2(IdentifyTablesData parserTable) { var page = parserTable.PageLines; if (page == null) { PdfReaderException.AlwaysThrow("AddTableHorizontalLines2 requires IdentifyTablesData"); } this._lines = page.AllBlocks.Where(l => l.GetWidth() > l.GetHeight()).ToList(); this._background = parserTable.PageBackground.AllBlocks.ToList(); }
public FindDouHeaderFooter(IdentifyTablesData tables, ProcessImageData images, HeaderFooterData headerFooterData) { this._headerFooterData = headerFooterData; this._lines = tables.PageLines; this._images = images.Images; this._pageFooterLine = tables.PageFooterLine; if (_lines == null || _images == null) { PdfReaderException.AlwaysThrow("FindDouHeaderFooter requires both IdentifyTablesData and ProcessImageData"); } }
public RemoveImageLineFromHeaderFooter(HeaderFooterData data, ProcessImageData imageData, IdentifyTablesData tablesData) { this._headerH = data.HeaderH; this._footerH = data.FooterH; this._imageData = imageData; this._tablesData = tablesData; if (float.IsNaN(_headerH) || float.IsNaN(_footerH)) { PdfReaderException.AlwaysThrow("RemoveImageLineFromHeaderFooter requires HeaderFooterData"); } }
public void SetCompatibility(IdentifyTables pre, IdentifyTablesData data) { if (data.Ready == false) { if (pre.PageTables == null && pre.PageLines == null && pre.PageBackground == null) { PdfReaderException.AlwaysThrow("there is no data available"); } data.PageFooterLine = pre.PageFooterLine; data.PageTables = pre.PageTables; data.PageLines = pre.PageLines; data.PageBackground = pre.PageBackground; data.Ready = true; } // set the compatibility between PreProcessImages and ProcessImageData pre.SetCompatibility(data); }
public SetIdentifyTablesCompatibility(IdentifyTables pre, IdentifyTablesData data) { this._pre = pre; this._data = data; }
public void SetCompatibility(IdentifyTablesData data) { _tableData = data; }