public void Load(string path)
 {
     this.path=path;
     PdfFile pf=new PdfFile(File.OpenRead(path));
     pf.ProgressEvent+=new ProgressDelegate(pf_ProgressEvent);
     pf.Load();
     this.MaxPage=pf.PageCount;
 }
Example #2
0
        public void Load(string path)
        {
            this.path = path;
            PdfFile pf = new PdfFile(File.OpenRead(path));

            pf.ProgressEvent += new ProgressDelegate(pf_ProgressEvent);
            pf.Load();
            this.MaxPage = pf.PageCount;
        }
 public void Add(Stream PdfInputStream, int[] PageNumbers)
 {
     PdfFile pf = new PdfFile(PdfInputStream);
        pf.ProgressEvent+=new ProgressDelegate(pf_ProgressEvent);
        pf.Load();
        PdfSplitter ps = new PdfSplitter();
        ps.ProgressEvent+=new ProgressDelegate(pf_ProgressEvent);
        ps.Load(pf, PageNumbers, this.number);
        this.Add(ps);
 }
Example #4
0
        public void Add(Stream PdfInputStream, int[] PageNumbers)
        {
            PdfFile pf = new PdfFile(PdfInputStream);

            pf.ProgressEvent += new ProgressDelegate(pf_ProgressEvent);
            pf.Load();
            PdfSplitter ps = new PdfSplitter();

            ps.ProgressEvent += new ProgressDelegate(pf_ProgressEvent);
            ps.Load(pf, PageNumbers, this.number);
            this.Add(ps);
        }