phpdftk API Documentation

SignatureValue extends PdfObject
in package

Signature value dictionary (/Type /Sig) — ISO 32000-2 §12.8.1, Table 258.

Holds the signed bytes (/Contents), the byte range over the PDF that was signed (/ByteRange), the handler that produced the signature (/Filter, /SubFilter), and optional metadata (name, location, reason, contact, date, references).

Actual PKCS#7/CAdES signing is out of scope for the object model; this class only carries the placeholder and structural entries. Callers that implement signing compute /ByteRange and overwrite /Contents in the serialized PDF.

Attributes
#[RequiresPdfVersion]
\Phpdftk\Pdf\Core\PdfVersion::V1_3

Table of Contents

Constants

PDF_TYPE  = 'Sig'

Properties

$byteRange  : PdfArray|null
$cert  : PdfArray|null
$changes  : PdfArray|null
$contactInfo  : PdfString|null
$contents  : PdfString
$filter  : PdfName
$generationNumber  : int
$location  : PdfString|null
$m  : PdfString|null
$name  : PdfString|null
$objectNumber  : int
$propAuthTime  : int|null
$propAuthType  : PdfName|null
$propBuild  : PdfDictionary|null
$r  : int|null
$reason  : PdfString|null
$reference  : PdfArray|null
$subFilter  : PdfName|null
$v  : int|null

Methods

__construct()  : mixed
toIndirectObject()  : string
Wrap the object in an indirect object structure: X Y obj ... endobj
toPdf()  : string
Serialize the object's dictionary/value to PDF syntax.

Constants

Properties

$generationNumber

public int $generationNumber = 0

Methods

__construct()

public __construct([string $filter = 'Adobe.PPKLite' ][, string|null $subFilter = 'adbe.pkcs7.detached' ][, PdfString|null $contents = null ]) : mixed
Parameters
$filter : string = 'Adobe.PPKLite'
$subFilter : string|null = 'adbe.pkcs7.detached'
$contents : PdfString|null = null

toIndirectObject()

Wrap the object in an indirect object structure: X Y obj ... endobj

public toIndirectObject() : string
Return values
string

toPdf()

Serialize the object's dictionary/value to PDF syntax.

public toPdf() : string
Return values
string

        
On this page

Search results