public void SigningPdfA2b_TwoSignatures_MultisigningIsEnabled_BothSignatuesAreValid() { TestHelper.Job.Profile.PdfSettings.Signature.AllowMultiSigning = true; TestHelper.Job.Profile.OutputFormat = OutputFormat.PdfA2B; TestHelper.Job.Profile.PdfSettings.Signature.DisplaySignatureInDocument = true; TestHelper.Job.Profile.PdfSettings.Signature.SignaturePage = SignaturePage.FirstPage; TestHelper.Job.Profile.PdfSettings.Signature.SignatureCustomPage = 2; TestHelper.Job.Profile.PdfSettings.Signature.LeftX = 300; TestHelper.Job.Profile.PdfSettings.Signature.LeftY = 200; TestHelper.Job.Profile.PdfSettings.Signature.RightX = 500; TestHelper.Job.Profile.PdfSettings.Signature.RightY = 400; TestHelper.Job.Profile.PdfSettings.Signature.SignContact = "Mr.Test"; TestHelper.Job.Profile.PdfSettings.Signature.SignLocation = "Testland"; TestHelper.Job.Profile.PdfSettings.Signature.SignReason = "The Reason is Testing"; TestHelper.Job.Profile.PdfSettings.Signature.TimeServerUrl = "http://timestamp.globalsign.com/scripts/timestamp.dll"; TestHelper.Job.Profile.PdfSettings.Security.Enabled = false; PDFProcessor.ProcessPdf(TestHelper.Job); PdfVersionTester.CheckPDFVersion(TestHelper.Job, PDFProcessor); SigningTester.TestSignature(TestHelper.Job); var multiSignedFile = SigningTester.TestMultipleSigning(TestHelper.Job, PDFProcessor); if (Debugger.IsAttached) { Process.Start(multiSignedFile); Debugger.Break(); } }
public void SigningPdfA1b_TwoSignatures_MultisigningIsEnabled_BothSignatuesAreValid() { TestHelper.Job.Profile.PdfSettings.Signature.AllowMultiSigning = true; TestHelper.Job.Profile.OutputFormat = OutputFormat.PdfA1B; TestHelper.Job.Profile.PdfSettings.Signature.DisplaySignatureInDocument = true; PDFProcessor.ProcessPdf(TestHelper.Job); PdfVersionTester.CheckPDFVersion(TestHelper.Job, PDFProcessor); SigningTester.TestSignature(TestHelper.Job); var multiSignedFile = SigningTester.TestMultipleSigning(TestHelper.Job, PDFProcessor); if (Debugger.IsAttached) { Process.Start(multiSignedFile); Debugger.Break(); } }
public void SigningPdf_TwoSignatures_MultisigningIsEnabled_FirstSignatureIsValid() { if (!Debugger.IsAttached) { return; } // TODO make multi-signing testable TestHelper.Job.Profile.PdfSettings.Signature.AllowMultiSigning = true; TestHelper.Job.Profile.OutputFormat = OutputFormat.Pdf; TestHelper.Job.Profile.PdfSettings.Signature.DisplaySignatureInDocument = true; PdfProcessor.ProcessPdf(TestHelper.Job); PdfVersionTester.CheckPDFVersion(TestHelper.Job, PdfProcessor); SigningTester.TestSignature(TestHelper.Job); var multiSignedFile = SigningTester.TestMultipleSigning(TestHelper.Job, PdfProcessor); Process.Start(multiSignedFile); Debugger.Break(); }
public void SigningPdfA1b_TwoSignatures_MultisigningIsDisabled_BothSignatureAreValid() { TestHelper.Job.Profile.PdfSettings.Signature.AllowMultiSigning = false; TestHelper.Job.Profile.OutputFormat = OutputFormat.PdfA1B; TestHelper.Job.Profile.PdfSettings.Signature.DisplaySignatureInDocument = true; PDFProcessor.ProcessPdf(TestHelper.Job); PdfVersionTester.CheckPDFVersion(TestHelper.Job, PDFProcessor); SigningTester.TestSignature(TestHelper.Job); //Enable AllowMultiSigning for Test //PDF/A-1b does not support blocking signatures //and should automatically enable AllowMultiSigning TestHelper.Job.Profile.PdfSettings.Signature.AllowMultiSigning = true; var multiSignedFile = SigningTester.TestMultipleSigning(TestHelper.Job, PDFProcessor); if (Debugger.IsAttached) { Process.Start(multiSignedFile); Debugger.Break(); } }