phpdftk API Documentation

PdfVersion : string
in package

PDF specification versions — ISO 32000-1 (1.x) and ISO 32000-2 (2.0).

Used to declare minimum version requirements for PDF features and to control the version written to the %PDF-X.Y file header.

Table of Contents

Cases

V1_0  = '1.0'
V1_1  = '1.1'
V1_2  = '1.2'
V1_3  = '1.3'
Introduced digital signatures and interactive forms.
V1_4  = '1.4'
Introduced transparency, JBIG2, and encryption revision 3.
V1_5  = '1.5'
Introduced cross-reference streams and object streams.
V1_6  = '1.6'
Introduced AES-128 encryption and OpenType font embedding.
V1_7  = '1.7'
Final Acrobat-era version — the default for most new PDFs.
V2_0  = '2.0'
ISO 32000-2 — AES-256, tagged PDF improvements, deprecations.

Methods

fromString()  : self|null
Parse a version string like '1.7' into an enum case, or null.
isAtLeast()  : bool
isGreaterThan()  : bool
max()  : self
Return the higher of two versions.

Cases

V1_3

Introduced digital signatures and interactive forms.

V1_4

Introduced transparency, JBIG2, and encryption revision 3.

V1_5

Introduced cross-reference streams and object streams.

V1_6

Introduced AES-128 encryption and OpenType font embedding.

V1_7

Final Acrobat-era version — the default for most new PDFs.

V2_0

ISO 32000-2 — AES-256, tagged PDF improvements, deprecations.

Methods

fromString()

Parse a version string like '1.7' into an enum case, or null.

public static fromString(string $version) : self|null
Parameters
$version : string
Return values
self|null

isAtLeast()

public isAtLeast(self $other) : bool
Parameters
$other : self
Return values
bool

isGreaterThan()

public isGreaterThan(self $other) : bool
Parameters
$other : self
Return values
bool

max()

Return the higher of two versions.

public max(self $other) : self
Parameters
$other : self
Return values
self

        
On this page

Search results