PSPDFSignatureType

Objective-C

enum PSPDFSignatureType : NSUInteger {}

Swift

@frozen enum PDFSignatureType : UInt

The signature type defines the digital signature format that will be used to sign the document.

  • CMS is the default signature type and will work for most common situations. This translates to PDF SubFilter value of adbe.pkcs7.detached.

    Declaration

    Objective-C

    PSPDFSignatureTypeCMS

    Swift

    case CMS = 0
  • PAdES is an advanced digital signature type with long term validation (LTV). PAdES is not yet fully supported in PSPDFKit so this option should be used with caution. This translates to PDF SubFilter value of ETSI.CAdES.detached.

    Declaration

    Objective-C

    PSPDFSignatureTypePades

    Swift

    case pades = 1
  • Deprecated. SHA1 is an older signature type which has been deprecated in PDF 2.0. We are not able to sign documents using this type, but it can be checked on validation. This translates to PDF SubFilter value of adbe.pkcs7.sha1.

    Declaration

    Objective-C

    PSPDFSignatureTypeSHA1

    Swift

    case SHA1 = 2