Example #1
0
            public HDOCWrapper(string filename, string pdf_user_password, string pdf_owner_password)
            {
                this.filename = filename;
                HDOC          = SoraxDLL.SPD_Open(filename, pdf_user_password, pdf_owner_password);

                if (IntPtr.Zero == HDOC)
                {
                    throw new Exception(String.Format("There was a problem opening the PDF '{0}'{1}", filename, !File.Exists(filename) ? " :: File does not exist." : ""));
                }
            }
            public HDOCWrapper(string filename, string pdf_user_password, string pdf_owner_password)
            {
                this.filename = filename;
                this.HDOC     = SoraxDLL.SPD_Open(filename, pdf_user_password, pdf_owner_password);

                if (IntPtr.Zero == HDOC)
                {
                    throw new Exception(String.Format("There was a problem opening the PDF '{0}'", filename));
                }
            }