Stirling PDF icon

Stirling PDF

Merged API: Stirling PDF - Processing API + Stirling PDF - Management API + Stirling PDF - System API

Actions260

Security → Sign PDF With Cert

AI-generated

Summary

Sign a PDF file with a digital certificate provided in various formats, optionally showing a visible signature on a specified page with customization options.

Inputs

  • fileInputBinaryProperty — Binary property name containing the PDF file data to sign (e.g., 'data').
  • fileId — ID of a server-side file to sign (alternative to file input for async jobs).
  • certType (required) — Type of the digital certificate used to sign the PDF (e.g., PEM, PKCS12, PFX, JKS, SERVER).
  • privateKeyFileBinaryProperty — Binary property name containing private key file data (used when supplying certificate and key separately).
  • certFileBinaryProperty — Binary property name containing certificate file data (used when supplying certificate and key separately).
  • p12FileBinaryProperty — Binary property name for a PKCS12/PFX certificate file data.
  • jksFileBinaryProperty — Binary property name for a JKS keystore file data.
  • password — Password for the keystore or private key if required.
  • showSignature (required) — Boolean flag indicating whether to show the signature visibly inside the PDF.
  • reason — Reason text for signing the PDF, defaulting to 'Signed by SPDF'.
  • location — Location text indicating where the PDF is signed, defaulting to 'SPDF'.
  • name — Name of the signer to display on the signature, defaulting to 'SPDF'.
  • pageNumber — Page number to display the visible signature; required if showSignature is true.
  • showLogo (required) — Boolean flag indicating whether to show a logo alongside the visible signature.

Output shape

a single signed PDF binary file output

If showSignature is true, the signature will be visually embedded on the specified page number. Input can be provided either as binary data or a server-side fileId. Certificate-related inputs vary by certType. Optional parameters customize the visible signature appearance and metadata.

Links

Discussion