示例#1
0
 public StandardHandlerUsingAes256(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword
                                   , int permissions, bool encryptMetadata, bool embeddedFilesOnly, PdfVersion version)
 {
     isPdf2 = version != null && version.CompareTo(PdfVersion.PDF_2_0) >= 0;
     InitKeyAndFillDictionary(encryptionDictionary, userPassword, ownerPassword, permissions, encryptMetadata,
                              embeddedFilesOnly);
 }
示例#2
0
        private void RegisterRules(PdfVersion pdfVersion)
        {
            ITaggingRule tableRule = new TableTaggingRule();

            RegisterSingleRule(StandardRoles.TABLE, tableRule);
            RegisterSingleRule(StandardRoles.TFOOT, tableRule);
            RegisterSingleRule(StandardRoles.THEAD, tableRule);
            if (pdfVersion.CompareTo(PdfVersion.PDF_1_5) < 0)
            {
                TableTaggingPriorToOneFiveVersionRule priorToOneFiveRule = new TableTaggingPriorToOneFiveVersionRule();
                RegisterSingleRule(StandardRoles.TABLE, priorToOneFiveRule);
                RegisterSingleRule(StandardRoles.THEAD, priorToOneFiveRule);
                RegisterSingleRule(StandardRoles.TFOOT, priorToOneFiveRule);
            }
        }