phpdftk API Documentation

PdfArray
in package
implements Serializable

Represents a PDF array object: [ item1 item2 ... ]

Items may be any Serializable object, a raw string (emitted verbatim), or a scalar int/float (treated as PdfNumber).

Table of Contents

Interfaces

Serializable
Contract for anything that can emit raw PDF syntax via `toPdf()`.

Properties

$items  : array<string|int, mixed>

Methods

__construct()  : mixed
toPdf()  : string

Properties

$items read-only

public array<string|int, mixed> $items = []

Methods

__construct()

public __construct([array<int|string, mixed> $items = [] ]) : mixed
Parameters
$items : array<int|string, mixed> = []

toPdf()

public toPdf() : string
Return values
string

        
On this page

Search results