PDF Signature: Hide CN from PFX but Show Timestamp and Date on Signature Appearance

Hi Aspose team,

I’m using the POST /pdf/{name}/sign API to digitally sign a PDF file with a .pfx certificate. Here’s the request I’m sending via curl:

bash

CopyEdit

curl --location 'https://api.aspose.cloud/v3.0/pdf/file333.pdf/sign' \
--header 'authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "SignaturePath": "fred.pfx",
  "FormFieldName": "sign1",
  "SignatureType": "PKCS7",
  "ShowDate": true,
  "Password": "apples",
  "Appearance": "rajat_sign.png",
  "Reason": "reason",
  "Visible": true,
  "Rectangle": {
    "LLX": 148,
    "LLY": 456,
    "URX": 29,
    "URY": 541
  },
  "ShowProperties": false
}'

Issue:

  • I want to display the signing date and timestamp.
  • I do not want to show the CN=fred (the name in the .pfx file).
  • When I set "ShowProperties": false, the date/time does not show either.
  • If I set "ShowProperties": true, then the CN=fred appears, which I don’t want to show.

Hi, @sidharth.chauhan
Are the signature fields displayed in the properties window?

Yes, the CN=fred is visibly displayed on the page itself inside the signature appearance box

Screenshot 2025-06-19 at 8.22.47 PM.png (327.5 KB)

@sidharth.chauhan , this is currently not supported. The digital subject name is always displayed, but you can manipulate other fields using the CustomAppearance field Aspose.Pdf Cloud - API References

@sidharth.chauhan
Im report issue and logged the following ticket in our issue tracking system for further investigation and rectification. We will notify you as soon as these issues are resolved.

PDFCLOUD-5030 Add possibility to hide subject field in signature appearance.

thanks for considering this , please let me know after release