PHP Класс Pop\Pdf\Import

Автор: Nick Sagona, III ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$objects array PDF imported objects
$pages array PDF imported page objects

Защищенные свойства (Protected)

Свойство Тип Описание
$data string PDF imported data
$kids array PDF imported kids indices
$thumbs array PDF imported thumb objects

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

Instantiate a PDF import object.
public __construct ( string $pdf, integer | string | array $pgs = null ) : Import
$pdf string
$pgs integer | string | array
Результат Import

firstIndex() защищенный Метод

Method to return the first object index.
protected firstIndex ( array $arr ) : integer
$arr array
Результат integer

getObjects() защищенный Метод

Method to search and return the objects within in the imported data.
protected getObjects ( string $data ) : void
$data string
Результат void

getRefs() защищенный Метод

Method to search and return the object references within in the data.
protected getRefs ( string $data ) : array
$data string
Результат array

lastIndex() защищенный Метод

Method to return the last object index.
protected lastIndex ( array $arr ) : integer
$arr array
Результат integer

returnObjects() публичный Метод

Method to return the desired imported objects to the main PDF object.
public returnObjects ( integer $par ) : array
$par integer
Результат array

shiftObjects() публичный Метод

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
Результат void

Описание свойств

$data защищенное свойство

PDF imported data
protected string $data
Результат string

$kids защищенное свойство

PDF imported kids indices
protected array $kids
Результат array

$objects публичное свойство

PDF imported objects
public array $objects
Результат array

$pages публичное свойство

PDF imported page objects
public array $pages
Результат array

$thumbs защищенное свойство

PDF imported thumb objects
protected array $thumbs
Результат array