\Pop\Pdf\BuildParser

Pdf parser class

Summary

Methods
Properties
Constants
getFile()
getData()
parse()
getObjectStreams()
getObjectMap()
getFonts()
No public properties found
No constants found
getStreamType()
init()
mapObjects()
mapFonts()
filterPages()
getObjects()
$file
$data
$objectStreams
$objectMap
$fonts
N/A
No private methods found
No private properties found
N/A

Properties

$file

$file : string

Imported PDF file

Type

string

$data

$data : string

Imported PDF data stream

Type

string

$objectStreams

$objectStreams : array

Parsed object data streams

Type

array

$objectMap

$objectMap : array

Object map

Type

array

$fonts

$fonts : array

Document fonts

Type

array

Methods

getFile()

getFile() : string

Get the file

Returns

string

getData()

getData() : string

Get the data stream

Returns

string

parse()

parse(string  $file, mixed  $pages = null) : \Pop\Pdf\AbstractDocument

Parse the data stream

Parameters

string $file
mixed $pages

Returns

\Pop\Pdf\AbstractDocument

getObjectStreams()

getObjectStreams() : array

Get the object streams

Returns

array

getObjectMap()

getObjectMap() : array

Get the object map

Returns

array

getFonts()

getFonts() : array

Get the document fonts

Returns

array

getStreamType()

getStreamType(string  $stream) : string

Get the object stream type

Parameters

string $stream

Returns

string

init()

init(string  $file) : \Pop\Pdf\Build\Parser

Initialize the file and get the data

Parameters

string $file

Throws

\Pop\Pdf\Build\Exception

Returns

\Pop\Pdf\Build\Parser

mapObjects()

mapObjects() : void

Map the objects

mapFonts()

mapFonts() : void

Map the fonts, if any

filterPages()

filterPages(mixed  $pages) : void

Filter pages

Parameters

mixed $pages

getObjects()

getObjects() : array

Get the objects for import

Returns

array