RootObject
extends AbstractObject
in package
Pdf root object class
Tags
Table of Contents
- $data : string
- PDF object data
- $index : int
- PDF root object index
- $isImported : string
- Imported flag
- $parent : int
- PDF root parent index
- $version : float
- PDF version
- __construct() : mixed
- Constructor
- __toString() : string
- Method to print the root object.
- getData() : string
- Get the object stream
- getDictionaryReferences() : array<string|int, mixed>
- Get the integer references within a dictionary stream
- getFormIndex() : int
- Get the root object form index
- getIndex() : int
- Get the object index
- getParentIndex() : int
- Get the root object parent index
- getVersion() : float
- Get the root object version
- isImported() : bool
- Determine if the object is imported
- parse() : RootObject
- Parse a root object from a string
- setData() : AbstractObject
- Set the object data
- setFormReferences() : RootObject
- Set the root object form index
- setImported() : AbstractObject
- Set whether the object is imported
- setIndex() : AbstractObject
- Set the object index
- setParentIndex() : RootObject
- Set the root object parent index
- setVersion() : RootObject
- Set the root object version
Properties
$data
PDF object data
protected
string
$data
= null
$index
PDF root object index
protected
int
$index
= 1
$isImported
Imported flag
protected
string
$isImported
= false
$parent
PDF root parent index
protected
int
$parent
= 2
$version
PDF version
protected
float
$version
= 1.7
Methods
__construct()
Constructor
public
__construct([int $index = 1 ]) : mixed
Instantiate a PDF root object.
Parameters
- $index : int = 1
Return values
mixed —__toString()
Method to print the root object.
public
__toString() : string
Return values
string —getData()
Get the object stream
public
getData() : string
Return values
string —getDictionaryReferences()
Get the integer references within a dictionary stream
public
getDictionaryReferences(string $dictionary) : array<string|int, mixed>
Parameters
- $dictionary : string
Return values
array<string|int, mixed> —getFormIndex()
Get the root object form index
public
getFormIndex() : int
Return values
int —getIndex()
Get the object index
public
getIndex() : int
Return values
int —getParentIndex()
Get the root object parent index
public
getParentIndex() : int
Return values
int —getVersion()
Get the root object version
public
getVersion() : float
Return values
float —isImported()
Determine if the object is imported
public
isImported() : bool
Return values
bool —parse()
Parse a root object from a string
public
static parse(string $stream) : RootObject
Parameters
- $stream : string
Return values
RootObject —setData()
Set the object data
public
setData(string $data) : AbstractObject
Parameters
- $data : string
Return values
AbstractObject —setFormReferences()
Set the root object form index
public
setFormReferences(string $forms) : RootObject
Parameters
- $forms : string
Return values
RootObject —setImported()
Set whether the object is imported
public
setImported(bool $imported) : AbstractObject
Parameters
- $imported : bool
Return values
AbstractObject —setIndex()
Set the object index
public
setIndex(int $i) : AbstractObject
Parameters
- $i : int
Return values
AbstractObject —setParentIndex()
Set the root object parent index
public
setParentIndex(int $p) : RootObject
Parameters
- $p : int
Return values
RootObject —setVersion()
Set the root object version
public
setVersion(float $version) : RootObject
Parameters
- $version : float