pdf-lite - v1.0.1
    Preparing search index...

    PKCS#7 detached signature object (adbe.pkcs7.detached). Creates CMS SignedData with the document hash as external data.

    const signature = new PdfAdbePkcs7DetachedSignatureObject({
    privateKey: keyBytes,
    certificate: certBytes,
    reason: 'Document approval',
    timeStampAuthority: true
    })

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    additionalCertificates: ByteArray[]

    Additional certificates for chain building.

    algorithm?: AsymmetricEncryptionAlgorithmParams

    Signature algorithm parameters.

    certificate: ByteArray

    Signer certificate.

    date?: Date

    Signing date.

    encryptable?: boolean
    generationNumber: number
    issuerCertificate?: ByteArray

    Issuer certificate for OCSP requests.

    modified: boolean = true

    Indicates whether the object has been modified. By default, assume it has been modified because it's a new object

    objectNumber: number
    offset: Ref<number>
    orderIndex?: number
    postTokens?: PdfToken[]

    Optional tokens to prepend or append during serialization

    preTokens?: PdfToken[]

    Optional tokens to prepend or append during serialization

    privateKey: ByteArray

    Private key for signing.

    revocationInfo?: RevocationInfo | "fetch"

    Revocation information or 'fetch' to retrieve automatically.

    sign: (
        options: { bytes: ByteArray; embedRevocationInfo?: boolean },
    ) => Promise<{ revocationInfo?: RevocationInfo; signedBytes: ByteArray }> = ...

    Signs the document bytes using PKCS#7 detached format.

    Type Declaration

      • (
            options: { bytes: ByteArray; embedRevocationInfo?: boolean },
        ): Promise<{ revocationInfo?: RevocationInfo; signedBytes: ByteArray }>
      • Signs the document bytes and returns the signature.

        Parameters

        • options: { bytes: ByteArray; embedRevocationInfo?: boolean }

          Signing options including bytes to sign.

        Returns Promise<{ revocationInfo?: RevocationInfo; signedBytes: ByteArray }>

        The signed bytes and optional revocation information.

    Signing options with bytes and revocation embedding flag.

    The CMS SignedData and revocation information.

    timeStampAuthority?: TimeStampAuthority

    Timestamp authority configuration.

    MAX_ORDER_INDEX: 2147483647

    Accessors

    Methods