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

    Class PdfSignatureObjectAbstract

    Abstract base class for PDF signature objects. Subclasses implement specific signature formats (PKCS#7, CAdES, etc.).

    const signature = new PdfAdbePkcs7DetachedSignatureObject({
    privateKey,
    certificate,
    reason: 'Approval'
    })
    document.add(signature)
    await document.commit()

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    encryptable?: boolean
    generationNumber: number
    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

    MAX_ORDER_INDEX: 2147483647

    Accessors

    Methods

    • Sets the byte range array for the signature.

      Parameters

      • byteRange: number[]

        Array of [offset1, length1, offset2, length2].

      Returns void

      Error if ByteRange entry is missing.