PHP Class Smalot\PdfParser\Header

Afficher le fichier Open project: smalot/pdfparser Class Usage Examples

Protected Properties

Свойство Type Description
$document Document
$elements Smalot\PdfParser\Element[]

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
resolveXRef ( string $name ) : Smalot\PdfParser\Element | Smalot\PdfParser\Object Resolve XRef to object.

Method Details

__construct() public méthode

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

get() public méthode

public get ( string $name ) : Smalot\PdfParser\Element | Smalot\PdfParser\Object
$name string
Résultat Smalot\PdfParser\Element | Smalot\PdfParser\Object

getDetails() public méthode

public getDetails ( boolean $deep = true ) : array
$deep boolean
Résultat array

getElementTypes() public méthode

Used only for debug.
public getElementTypes ( ) : array
Résultat array

getElements() public méthode

Returns all elements.
public getElements ( ) : mixed
Résultat mixed

has() public méthode

Indicate if an element name is available in header.
public has ( string $name ) : boolean
$name string The name of the element
Résultat boolean

parse() public static méthode

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
Résultat Header

resolveXRef() protected méthode

Resolve XRef to object.
protected resolveXRef ( string $name ) : Smalot\PdfParser\Element | Smalot\PdfParser\Object
$name string
Résultat Smalot\PdfParser\Element | Smalot\PdfParser\Object

Property Details

$document protected_oe property

protected Document,Smalot\PdfParser $document
Résultat Document

$elements protected_oe property

protected Element[],Smalot\PdfParser $elements
Résultat Smalot\PdfParser\Element[]