コード例 #1
0
        /**
         *  Retrieve encrypted pdf shares
         */
        private void RetrieveEncryptedPdf()
        {
            _encryptedPdf = new List <PDFDocument>();

            for (int i = 0; i < _numOfShares; i++)
            {
                PDFDocumentLoadOptions Op = new PDFDocumentLoadOptions(true);
                _encryptedPdf.Add(new PDFDocument(_encryptedFilePath + (i + 1) + ".pdf", Op));
            }
        }
コード例 #2
0
        /**
         * Helper method to get an array of ShareNumbers.
         * ShareNumber will have integer values equals to number of shares required to decrypt PDF.
         *
         */
        private void RetrieveShares()
        {
            _shareNumbers = new List <int>();

            for (int i = 0; i < _shareforRec; i++)
            {
                PDFDocumentLoadOptions Op = new PDFDocumentLoadOptions(true);
                _pdfShares.Add(new PDFDocument(_encryptedFilePath + (i + 1) + ".pdf", Op));

                _shareNumbers.Add(i);
            }
        }
コード例 #3
0
        /**
         * Creates an object of the original PDF.
         *
         */
        private void CreatePlainTextPDF()
        {
            PDFDocumentLoadOptions Op = new PDFDocumentLoadOptions(true);

            _plainPDF = new PDFDocument(_filePath, Op);
        }