Table of contents
Namespace: Com\Tecnick\Pdf\Sign\Output
final class DocTimeStamp
Source: src/Output/DocTimeStamp.php:40
Emits a document timestamp value object (/Type /DocTimeStamp, /SubFilter /ETSI.RFC3161) whose /Contents is a bare RFC 3161 timestamp token. It is added in an incremental update to reach PAdES B-LTA. It shares the /ByteRange and /Contents placeholders with the signature value object so the host’s signing pass locates them the same way for either object type.
Constants
SUB_FILTER
SubFilter for an RFC 3161 document timestamp.
public const SUB_FILTER = 'ETSI.RFC3161'
Source: src/Output/DocTimeStamp.php:45
Methods
valueObject()
Emit the /DocTimeStamp value object.
public valueObject(
int $objectId,
int $contentsLength = \Com\Tecnick\Pdf\Sign\Output\Signature::DEFAULT_CONTENTS_LEN…
): string
Parameters:
$objectId(int): Object number for the value object.$contentsLength(int): Placeholder length reserved for the token, in hex digits; must be even and positive.
Returns: string
Throws:
- Exception: If the object number or the placeholder length is invalid.
Source: src/Output/DocTimeStamp.php:56