private void MakePasswordTests(OutputFormat format) { _th.Profile.PdfSettings.Security.Enabled = false; _th.Profile.PdfSettings.Security.RequireUserPassword = false; _th.GenerateGsJob(PSfiles.ThreePDFCreatorTestpages, format); _th.Job.Profile.PdfSettings.Signature.SignaturePassword = TestCertPw; _th.RunGsJob(); EncryptionTester.DoPasswordTest(_th.Job); _th.Profile.PdfSettings.Security.Enabled = true; _th.Profile.PdfSettings.Security.RequireUserPassword = false; _th.GenerateGsJob(PSfiles.ThreePDFCreatorTestpages, format); _th.Job.Profile.PdfSettings.Signature.SignaturePassword = TestCertPw; _th.Job.Passwords.PdfUserPassword = "******"; _th.Job.Passwords.PdfOwnerPassword = "******"; _th.RunGsJob(); EncryptionTester.DoPasswordTest(_th.Job); _th.Profile.PdfSettings.Security.Enabled = true; _th.Profile.PdfSettings.Security.RequireUserPassword = true; _th.GenerateGsJob(PSfiles.ThreePDFCreatorTestpages, format); _th.Job.Profile.PdfSettings.Signature.SignaturePassword = TestCertPw; _th.Job.Passwords.PdfUserPassword = "******"; _th.Job.Passwords.PdfOwnerPassword = "******"; _th.RunGsJob(); EncryptionTester.DoPasswordTest(_th.Job); }
private void TestEncryption() { _pdfProcessor.ProcessPdf(_th.Job); PdfVersionTester.CheckPDFVersion(_th.Job, _pdfProcessor); EncryptionTester.DoPasswordTest(_th.Job); EncryptionTester.DoSecurityTest(_th.Job, IsIText); }