/// <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); }
/// <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; }