public void SetCompatibility(PreProcessImages pre, ProcessImageData data)
        {
            if (data.Images == null)
            {
                PdfReaderException.AlwaysThrow("Null image");
            }

            // set the compatibility between PreProcessImages and ProcessImageData
            pre.SetCompatibility(data);
        }
Exemplo n.º 2
0
        public FindDouHeaderFooter(IdentifyTablesData tables, ProcessImageData images, HeaderFooterData headerFooterData)
        {
            this._headerFooterData = headerFooterData;
            this._lines            = tables.PageLines;
            this._images           = images.Images;

            if (_lines == null || _images == null)
            {
                PdfReaderException.AlwaysThrow("FindDouHeaderFooter requires both IdentifyTablesData and ProcessImageData");
            }
        }
Exemplo n.º 3
0
        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");
            }
        }
Exemplo n.º 4
0
        public RemoveOverlapedImages2(ProcessImageData parseImage)
        {
            var page = parseImage.Images;

            if (page == null)
            {
                PdfReaderException.AlwaysThrow("RemoveHeaderImage requires PreProcessImages");
            }

            //this._images = page.AllBlocks.ToList();

            this._parse = parseImage;
        }
 public SetProcessImageCompatibility(PreProcessImages pre, ProcessImageData data)
 {
     this._pre  = pre;
     this._data = data;
 }