Пример #1
0
        public MergeTableText(PDFCore.IdentifyTables parserTable)
        {
            var page = parserTable.PageTables;

            if (page == null)
            {
                PdfReaderException.AlwaysThrow("MergeTableText requires IdentifyTables");
            }

            this._tables     = page.AllBlocks.ToList();
            this._tableLines = parserTable.PageLines.AllBlocks.ToList();
            this._parser     = parserTable;
        }
Пример #2
0
        public void SetPage(PipelinePage p)
        {
            var parserTable = p.CreateInstance <PDFCore.IdentifyTables>();

            var page = parserTable.PageTables;

            if (page == null)
            {
                PdfReaderException.AlwaysThrow("MergeTableText requires IdentifyTables");
            }

            this._tables     = page.AllBlocks.ToList();
            this._tableLines = parserTable.PageLines.AllBlocks.ToList();
            this._parser     = parserTable;
        }
        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.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;
 }