Пример #1
0
        /// <summary>
        /// Sets ths digital signature's info.
        /// </summary>
        /// <param name="pdfRptSignedFileBuilder">digital signature's info builder</param>
        /// <returns></returns>
        public PdfReport Sign(Action <SignedFileBuilder> pdfRptSignedFileBuilder)
        {
            var builder = new SignedFileBuilder(this);

            pdfRptSignedFileBuilder(builder);

            if (DataBuilder.DocumentSecurity == null)
            {
                DataBuilder.DocumentSecurity = new DocumentSecurity();
            }

            DataBuilder.DocumentSecurity.DigitalSignature = builder.DigitalSignature;
            return(this);
        }
Пример #2
0
        /// <summary>
        /// Sets ths digital signature's info.
        /// </summary>
        /// <param name="pdfRptSignedFileBuilder">digital signature's info builder</param>
        /// <returns></returns>
        public PdfReport Sign(Action<SignedFileBuilder> pdfRptSignedFileBuilder)
        {
            var builder = new SignedFileBuilder(this);
            pdfRptSignedFileBuilder(builder);

            if (DataBuilder.DocumentSecurity == null)
                DataBuilder.DocumentSecurity = new DocumentSecurity();

            DataBuilder.DocumentSecurity.DigitalSignature = builder.DigitalSignature;
            return this;
        }