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);
            }
        }
Beispiel #2
0
        public void SigningAndBackground()
        {
            _th.Job.Profile.OutputFormat = OutputFormat.Pdf; //Disables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = false;
            _th.Job.Profile.PdfSettings.Signature.Enabled = true;
            _th.Job.Profile.BackgroundPage.Enabled        = true;

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

            SigningTester.TestSignature(_th.Job);
            BackgroundPageTester.BackgroundOnPage(_th.Job);
        }
Beispiel #3
0
        public void MetadataAndBackground()
        {
            _th.Job.Profile.OutputFormat = OutputFormat.PdfA2B; //Enables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = false;
            _th.Job.Profile.PdfSettings.Signature.Enabled = false;
            _th.Job.Profile.BackgroundPage.Enabled        = true;

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

            XmpMetadataTester.CheckForXMPMetadataUpdateStrings(_th.Job);
            BackgroundPageTester.BackgroundOnPage(_th.Job);
        }
        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 MetadataAndBackground()
        {
            GenerateGsJob_WithSettedOutput(TestFile.TestpagePDFA2b); //Enables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = false;
            _th.Job.Profile.PdfSettings.Signature.Enabled = false;
            _th.Job.Profile.BackgroundPage.Enabled        = true;

            _pdfProcessor.ProcessPdf(_th.Job);

            XmpMetadataTester.CheckForXMPMetadataUpdateStrings(_th.Job);
            BackgroundPageTester.BackgroundOnPage(_th.Job);
        }
        public void EncryptionAndBackground()
        {
            GenerateGsJob_WithSettedOutput(TestFile.PDFCreatorTestpagePDF); //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.DoSecurityTest(_th.Job, IsIText);
            BackgroundPageTester.BackgroundOnPage(_th.Job);
        }
Beispiel #7
0
        public void SigningAndBackground()
        {
            GenerateGsJob_WithSettedOutput(TestFile.PDFCreatorTestpage_GS9_19_PDF); //Disables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = false;
            _th.Job.Profile.PdfSettings.Signature.Enabled = true;
            _th.Job.Profile.BackgroundPage.Enabled        = true;

            _pdfProcessor.ProcessPdf(_th.Job);

            PdfVersionTester.CheckPDFVersion(_th.Job, _pdfProcessor);
            SigningTester.TestSignature(_th.Job);
            BackgroundPageTester.BackgroundOnPage(_th.Job);
        }
        public void MetadataSigningAndBackground()
        {
            _th.Job.Profile.OutputFormat = OutputFormat.PdfA2B; //Enables pdf metadata update
            _th.Job.Profile.PdfSettings.Security.Enabled  = false;
            _th.Job.Profile.PdfSettings.Signature.Enabled = true;
            _th.Job.Profile.BackgroundPage.Enabled        = true;

            PdfProcessor.ProcessPdf(_th.Job);

            XmpMetadataTester.CheckForXMPMetadataUpdateStrings(_th.Job);
            SigningTester.TestSignature(_th.Job);
            BackgroundPageTester.BackgroundOnPage(_th.Job);
        }
Beispiel #9
0
        public void All_MatadataUpdateEncryptionSigningAndBackground()
        {
            _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        = true;

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

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