Example #1
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
        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;
        }