digital signature's info builder class.
Example #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);
        }
Example #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;
        }