Hi, the issue is that you need to save using e_incremental flag on the 2nd+ signature. Otherwise, you are modifying the existing PDF, breaking the digital signature.
doc.save(outFile, 0, SDFDoc.e_incremental); // incremental appends bytes to the PDF
This forum post explains more about Digital Signatures