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