Document Solutions for Excel, .NET Edition | Document Solutions
File Operations / Export to PDF / Export Signature Lines
In This Topic
    Export Signature Lines
    In This Topic

    DsExcel supports exporting signature lines to PDF documents. The signature lines are exported as images and the exported signature line is different depending upon the validity of certificate. This validity or invalidity is decided by SkipCertificateValidationOnExporting property of ISignatureSet interface. Its default value is true, meaning that the certificate will be treated as valid. However, you can set it to false to validate the certificate which requires an internet connection.

    Using Code

    Refer to the following example code to export signature lines to a PDF document.

    C#
    Copy Code
    //create a new workbook
    var workbook = new Workbook();
    
    workbook.Open("Signature.xlsx");
    workbook.Signatures.SkipCertificateValidationOnExporting = false;
    
    //save to a pdf file
    workbook.Save("exportsignaturelinetopdf.pdf");