PHP Class Smalot\PdfParser\Document

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

Protected Properties

Свойство Type Description
$details array
$dictionary array
$objects Smalot\PdfParser\Object[]
$trailer Header

Méthodes publiques

Méthode Description
__construct ( )
getDetails ( $deep = true ) : array
getDictionary ( ) : array
getFonts ( ) : Smalot\PdfParser\Object[]
getObjectById ( string $id ) : Smalot\PdfParser\Object
getObjects ( ) : Smalot\PdfParser\Object[]
getObjectsByType ( string $type, string $subtype = null ) : Smalot\PdfParser\Object[]
getPages ( ) : Page[]
getText ( Page $page = null ) : string
init ( )
setObjects ( Smalot\PdfParser\Object[] $objects = [] )
setTrailer ( Header $trailer )

Méthodes protégées

Méthode Description
buildDetails ( ) Build details array.
buildDictionary ( ) Build dictionary based on type header field.

Method Details

__construct() public méthode

public __construct ( )

buildDetails() protected méthode

Build details array.
protected buildDetails ( )

buildDictionary() protected méthode

Build dictionary based on type header field.
protected buildDictionary ( )

getDetails() public méthode

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

getDictionary() public méthode

public getDictionary ( ) : array
Résultat array

getFonts() public méthode

public getFonts ( ) : Smalot\PdfParser\Object[]
Résultat Smalot\PdfParser\Object[]

getObjectById() public méthode

public getObjectById ( string $id ) : Smalot\PdfParser\Object
$id string
Résultat Smalot\PdfParser\Object

getObjects() public méthode

public getObjects ( ) : Smalot\PdfParser\Object[]
Résultat Smalot\PdfParser\Object[]

getObjectsByType() public méthode

public getObjectsByType ( string $type, string $subtype = null ) : Smalot\PdfParser\Object[]
$type string
$subtype string
Résultat Smalot\PdfParser\Object[]

getPages() public méthode

public getPages ( ) : Page[]
Résultat Page[]

getText() public méthode

public getText ( Page $page = null ) : string
$page Page
Résultat string

init() public méthode

public init ( )

setObjects() public méthode

public setObjects ( Smalot\PdfParser\Object[] $objects = [] )
$objects Smalot\PdfParser\Object[]

setTrailer() public méthode

public setTrailer ( Header $trailer )
$trailer Header

Property Details

$details protected_oe property

protected array $details
Résultat array

$dictionary protected_oe property

protected array $dictionary
Résultat array

$objects protected_oe property

protected Object[],Smalot\PdfParser $objects
Résultat Smalot\PdfParser\Object[]

$trailer protected_oe property

protected Header,Smalot\PdfParser $trailer
Résultat Header