InfoObject
extends AbstractObject
in package
Pdf info object class
Tags
Table of Contents
Properties
- $data : string|null
- PDF object data
- $index : int|null
- PDF info object index
- $isImported : bool
- Imported flag
- $metadata : Metadata|null
- PDF metadata for the info object
Methods
- __construct() : mixed
- Constructor
- __toString() : string
- Method to print the PDF info object.
- getData() : string|null
- Get the object stream
- getDictionaryReferences() : array<string|int, mixed>
- Get the integer references within a dictionary stream
- getIndex() : int|null
- Get the object index
- getMetadata() : Metadata|null
- Get the info object metadata
- isImported() : bool
- Determine if the object is imported
- parse() : InfoObject
- Parse a info object from a string
- setData() : AbstractObject
- Set the object data
- setImported() : AbstractObject
- Set whether the object is imported
- setIndex() : AbstractObject
- Set the object index
- setMetadata() : InfoObject
- Set the info object metadata
Properties
$data
PDF object data
protected
string|null
$data
= null
$index
PDF info object index
protected
int|null
$index
= 3
$isImported
Imported flag
protected
bool
$isImported
= false
$metadata
PDF metadata for the info object
protected
Metadata|null
$metadata
= null
Methods
__construct()
Constructor
public
__construct([int $index = 3 ][, Metadata|null $metadata = null ]) : mixed
Instantiate a PDF info object.
Parameters
- $index : int = 3
- $metadata : Metadata|null = null
__toString()
Method to print the PDF info object.
public
__toString() : string
Return values
stringgetData()
Get the object stream
public
getData() : string|null
Return values
string|nullgetDictionaryReferences()
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>getIndex()
Get the object index
public
getIndex() : int|null
Return values
int|nullgetMetadata()
Get the info object metadata
public
getMetadata() : Metadata|null
Return values
Metadata|nullisImported()
Determine if the object is imported
public
isImported() : bool
Return values
boolparse()
Parse a info object from a string
public
static parse(string $stream) : InfoObject
Parameters
- $stream : string
Return values
InfoObjectsetData()
Set the object data
public
setData(string $data) : AbstractObject
Parameters
- $data : string
Return values
AbstractObjectsetImported()
Set whether the object is imported
public
setImported(bool $imported) : AbstractObject
Parameters
- $imported : bool
Return values
AbstractObjectsetIndex()
Set the object index
public
setIndex(int $i) : AbstractObject
Parameters
- $i : int
Return values
AbstractObjectsetMetadata()
Set the info object metadata
public
setMetadata(Metadata $metadata) : InfoObject
Parameters
- $metadata : Metadata