Пример #1
0
        public void PdfVersionTest_DefaultProfile_VersionIs4()
        {
            var profile = new ConversionProfile();
            var version = PDFProcessor.DeterminePdfVersion(profile);

            Assert.AreEqual("1.4", version, "Wrong PDFVersion for default Profile");
        }
Пример #2
0
        public void PdfVersionTest_ProfileWith_EnabledSecurityAnd128AesLevel_VersionIs6()
        {
            var profile = new ConversionProfile();

            profile.PdfSettings.Security.Enabled         = true;
            profile.PdfSettings.Security.EncryptionLevel = EncryptionLevel.Aes128Bit;
            var version = PDFProcessor.DeterminePdfVersion(profile);

            Assert.AreEqual("1.6", version, "Wrong PDFVersion for enabled security with Aes128Bit");
        }