/** * 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)); } }
/** * 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); } }
/** * Creates an object of the original PDF. * */ private void CreatePlainTextPDF() { PDFDocumentLoadOptions Op = new PDFDocumentLoadOptions(true); _plainPDF = new PDFDocument(_filePath, Op); }