PHP Class Pop\Pdf\Import

Author: Nick Sagona, III ([email protected])
Exibir arquivo Open project: nicksagona/PopPHP Class Usage Examples

Public Properties

Property Type Description
$objects array PDF imported objects
$pages array PDF imported page objects

Protected Properties

Property Type Description
$data string PDF imported data
$kids array PDF imported kids indices
$thumbs array PDF imported thumb objects

Public Methods

Method Description
__construct ( string $pdf, integer | string | array $pgs = null ) : Import Constructor
returnObjects ( integer $par ) : array Method to return the desired imported objects to the main PDF object.
shiftObjects ( integer $si ) : void Method to shift the objects' indices based on the array of indices passed to the method, to prevent duplication.

Protected Methods

Method Description
firstIndex ( array $arr ) : integer Method to return the first object index.
getObjects ( string $data ) : void Method to search and return the objects within in the imported data.
getRefs ( string $data ) : array Method to search and return the object references within in the data.
lastIndex ( array $arr ) : integer Method to return the last object index.

Method Details

__construct() public method

Instantiate a PDF import object.
public __construct ( string $pdf, integer | string | array $pgs = null ) : Import
$pdf string
$pgs integer | string | array
return Import

firstIndex() protected method

Method to return the first object index.
protected firstIndex ( array $arr ) : integer
$arr array
return integer

getObjects() protected method

Method to search and return the objects within in the imported data.
protected getObjects ( string $data ) : void
$data string
return void

getRefs() protected method

Method to search and return the object references within in the data.
protected getRefs ( string $data ) : array
$data string
return array

lastIndex() protected method

Method to return the last object index.
protected lastIndex ( array $arr ) : integer
$arr array
return integer

returnObjects() public method

Method to return the desired imported objects to the main PDF object.
public returnObjects ( integer $par ) : array
$par integer
return array

shiftObjects() public method

Method to shift the objects' indices based on the array of indices passed to the method, to prevent duplication.
public shiftObjects ( integer $si ) : void
$si integer
return void

Property Details

$data protected_oe property

PDF imported data
protected string $data
return string

$kids protected_oe property

PDF imported kids indices
protected array $kids
return array

$objects public_oe property

PDF imported objects
public array $objects
return array

$pages public_oe property

PDF imported page objects
public array $pages
return array

$thumbs protected_oe property

PDF imported thumb objects
protected array $thumbs
return array