To add digital signature in an electronic invoice, you need to have a DSC token which can be obtained by applying for it through a Certifying Authority. Once you have the DSC token, you can configure digital signature settings in the export or print section.