\pdf_parser

Summary

Methods
Properties
Constants
pdf_parser()
closeFile()
error()
getEncryption()
pdf_find_root()
pdf_read_root()
pdf_find_xref()
pdf_read_xref()
pdf_read_value()
pdf_resolve_object()
pdf_read_token()
$filename
$f
$c
$xref
$root
$success
$errormsg
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$filename

$filename : string

Filename

Type

string

$f

$f : resource

File resource

Type

resource

$c

$c : object

PDF Context

Type

object — pdf_context-Instance

$xref

$xref : array

xref-Data

Type

array

$root

$root : array

root-Object

Type

array

$success

$success

$errormsg

$errormsg

Methods

pdf_parser()

pdf_parser(string $filename)

Constructor

Parameters

string $filename

Source-Filename

closeFile()

closeFile()

Close the opened file

error()

error(string $msg)

Print Error and die

Parameters

string $msg

Error-Message

getEncryption()

getEncryption()

Check Trailer for Encryption

pdf_find_root()

pdf_find_root() : array

Find/Return /Root

Returns

array

pdf_read_root()

pdf_read_root()

Read the /Root

pdf_find_xref()

pdf_find_xref()

Find the xref-Table

pdf_read_xref()

pdf_read_xref(array $result, integer $offset, integer $start, integer $end)

Read xref-table

Parameters

array $result

Array of xref-table

integer $offset

of xref-table

integer $start

start-position in xref-table

integer $end

end-position in xref-table

pdf_read_value()

pdf_read_value(object $c, string $token) : mixed

Reads an Value

Parameters

object $c

pdf_context

string $token

a Token

Returns

mixed

pdf_resolve_object()

pdf_resolve_object(object $c, array $obj_spec, boolean $encapsulate)

Resolve an object

Parameters

object $c

pdf_context

array $obj_spec

The object-data

boolean $encapsulate

Must set to true, cause the parsing and fpdi use this method only without this para

pdf_read_token()

pdf_read_token(object $c) : mixed

Reads a token from the file

Parameters

object $c

pdf_context

Returns

mixed