Exemplo n.º 1
0
        private void TestEncryption()
        {
            PDFProcessor.ProcessPDF(_testFile, _th.Profile, _passwords);

            EncryptionTester.MakePasswordTest(_testFile, _th.Profile, _passwords);
            EncryptionTester.MakeSecurityTest(_testFile, _th.Profile, _passwords.PdfOwnerPassword);
        }
Exemplo n.º 2
0
        public void EncryptionAndSigning()
        {
            _th.Job.Profile.OutputFormat = OutputFormat.Pdf; //Disables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = true;
            _th.Job.Profile.PdfSettings.Signature.Enabled = true;
            _th.Job.Profile.BackgroundPage.Enabled        = false;

            PDFProcessor.ProcessPDF(_th.Job.OutputFiles[0], _th.Job.Profile, _th.Job.Passwords);

            EncryptionTester.MakeSecurityTest(_th.Job);
            SigningTester.TestSignature(_th.Job);
        }
Exemplo n.º 3
0
        public void MetadataAndEncryption()
        {
            _th.Job.Profile.OutputFormat = OutputFormat.PdfA2B; //Enables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = true;
            _th.Job.Profile.PdfSettings.Signature.Enabled = false;
            _th.Job.Profile.BackgroundPage.Enabled        = false;

            PDFProcessor.ProcessPDF(_th.Job.OutputFiles[0], _th.Job.Profile, _th.Job.Passwords);

            XmpMetadataTester.CheckForXMPMetadataUpdateStrings(_th.Job);
            EncryptionTester.MakeSecurityTest(_th.Job);
        }
        private void TestEncryption()
        {
            var job = new Job(new JobInfo(), _th.Profile, new JobTranslations(), new Accounts());

            job.Passwords = _passwords;
            job.TempOutputFiles.Add(_testFile);

            PdfProcessor.ProcessPdf(job);

            EncryptionTester.MakePasswordTest(_testFile, _th.Profile, _passwords);
            EncryptionTester.MakeSecurityTest(_testFile, _th.Profile, _passwords.PdfOwnerPassword);
        }
        public void EncryptionAndBackground()
        {
            _th.Job.Profile.OutputFormat = OutputFormat.Pdf; //Disables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = true;
            _th.Job.Profile.PdfSettings.Signature.Enabled = false;
            _th.Job.Profile.BackgroundPage.Enabled        = true;

            PdfProcessor.ProcessPdf(_th.Job);

            EncryptionTester.MakeSecurityTest(_th.Job);
            BackgroundPageTester.BackgroundOnPage(_th.Job);
        }
        public void MetadataEncryptionAndSigning()
        {
            _th.Job.Profile.OutputFormat = OutputFormat.PdfA2B; //Enables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = true;
            _th.Job.Profile.PdfSettings.Signature.Enabled = true;
            _th.Job.Profile.BackgroundPage.Enabled        = false;

            PdfProcessor.ProcessPdf(_th.Job);

            XmpMetadataTester.CheckForXMPMetadataUpdateStrings(_th.Job);
            EncryptionTester.MakeSecurityTest(_th.Job);
            SigningTester.TestSignature(_th.Job);
        }