Document Solutions for Excel, Java 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 setSkipCertificateValidationOnExporting method 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
    Workbook workbook = new Workbook();
    
    workbook.open("Signature.xlsx");
    workbook.getSignatures().setSkipCertificateValidationOnExporting(false);
    
    // save to a pdf file
    workbook.save("ExportSignatureLineToPDF.pdf");