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
PDF_TYPE
public
mixed
PDF_TYPE
= 'Sig'
Properties
$byteRange
public
PdfArray|null
$byteRange
= null
$cert
public
PdfArray|null
$cert
= null
$changes
public
PdfArray|null
$changes
= null
$contactInfo
public
PdfString|null
$contactInfo
= null
$contents
public
PdfString
$contents
$filter
public
PdfName
$filter
$generationNumber
public
int
$generationNumber
= 0
$location
public
PdfString|null
$location
= null
$m
public
PdfString|null
$m
= null
$name
public
PdfString|null
$name
= null
$objectNumber
public
int
$objectNumber
= 0
$propAuthTime
public
int|null
$propAuthTime
= null
$propAuthType
public
PdfName|null
$propAuthType
= null
$propBuild
public
PdfDictionary|null
$propBuild
= null
$r
public
int|null
$r
= null
$reason
public
PdfString|null
$reason
= null
$reference
public
PdfArray|null
$reference
= null
$subFilter
public
PdfName|null
$subFilter
= null
$v
public
int|null
$v
= null
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
stringtoPdf()
Serialize the object's dictionary/value to PDF syntax.
public
toPdf() : string