PHP Класс Smalot\PdfParser\Header

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$document Document
$elements Smalot\PdfParser\Element[]

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

Метод Описание
__construct ( Smalot\PdfParser\Element[] $elements = [], Document $document = null )
get ( string $name ) : Smalot\PdfParser\Element | Smalot\PdfParser\Object
getDetails ( boolean $deep = true ) : array
getElementTypes ( ) : array Used only for debug.
getElements ( ) : mixed Returns all elements.
has ( string $name ) : boolean Indicate if an element name is available in header.
parse ( string $content, Document $document, integer &$position ) : Header

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

Метод Описание
resolveXRef ( string $name ) : Smalot\PdfParser\Element | Smalot\PdfParser\Object Resolve XRef to object.

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

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

public __construct ( Smalot\PdfParser\Element[] $elements = [], Document $document = null )
$elements Smalot\PdfParser\Element[] List of elements.
$document Document Document.

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

public get ( string $name ) : Smalot\PdfParser\Element | Smalot\PdfParser\Object
$name string
Результат Smalot\PdfParser\Element | Smalot\PdfParser\Object

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

public getDetails ( boolean $deep = true ) : array
$deep boolean
Результат array

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

Used only for debug.
public getElementTypes ( ) : array
Результат array

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

Returns all elements.
public getElements ( ) : mixed
Результат mixed

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

Indicate if an element name is available in header.
public has ( string $name ) : boolean
$name string The name of the element
Результат boolean

parse() публичный статический Метод

public static parse ( string $content, Document $document, integer &$position ) : Header
$content string The content to parse
$document Document The document
$position integer The new position of the cursor after parsing
Результат Header

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

Resolve XRef to object.
protected resolveXRef ( string $name ) : Smalot\PdfParser\Element | Smalot\PdfParser\Object
$name string
Результат Smalot\PdfParser\Element | Smalot\PdfParser\Object

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

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

protected Document,Smalot\PdfParser $document
Результат Document

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

protected Element[],Smalot\PdfParser $elements
Результат Smalot\PdfParser\Element[]