Skip to content

Commit

Permalink
additional fix to Stirling-Tools#364
Browse files Browse the repository at this point in the history
  • Loading branch information
Frooodle committed Sep 24, 2023
1 parent ece0095 commit 1e2eb9b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.security.cert.X509Certificate;
import java.security.spec.PKCS8EncodedKeySpec;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;

Expand Down Expand Up @@ -130,7 +131,8 @@ public ResponseEntity<byte[]> signPDFWithCert(@ModelAttribute SignPDFWithCertReq
signature.setName(name);
signature.setLocation(location);
signature.setReason(reason);

signature.setSignDate(Calendar.getInstance());

// Load the PDF
try (PDDocument document = PDDocument.load(pdf.getBytes())) {
logger.info("Successfully loaded the provided PDF");
Expand Down

0 comments on commit 1e2eb9b

Please sign in to comment.