Esempio n. 1
0
 public void ValidatePdfA3B_WithSignature()
 {
     InitializeTest(OutputFormat.PdfA3B);
     ApplySignatureSettings();
     _th.RunGsJob();
     PDFValidation.ValidatePdf(_th.Job);
 }
        private void DoAllTests()
        {
            var format = _th.Job.Profile.OutputFormat;

            PdfVersionTester.CheckPDFVersion(_th.Job, _pdfProcessor);

            SigningTester.TestSignature(_th.Job);

            if (_th.Profile.BackgroundPage.Enabled)
            {
                BackgroundPageTester.BackgroundOnPage(_th.Job);
            }

            /*
             * if (format == OutputFormat.PdfA1B || format == OutputFormat.PdfA2B)
             *  XmpMetadataTester.CheckForXMPMetadataUpdateStrings(_th.Job);
             */

            if (format != OutputFormat.PdfX)
            {
                PDFValidation.ValidatePdf(_th.Job);
            }

            //Must be last because it changes the encryption
            if ((format == OutputFormat.Pdf) && (_th.Profile.PdfSettings.Security.Enabled))
            {
                EncryptionTester.DoSecurityTest(_th.Job, IsIText);
                MakePasswordTests(_th.Job.Profile.OutputFormat);
            }
        }
Esempio n. 3
0
 public void ValidatePdfA3B()
 {
     InitializeTest(OutputFormat.PdfA3B);
     _th.RunGsJob();
     PDFValidation.ValidatePdf(_th.Job);
 }