classes-Com-Tecnick-Pdf-Parser-Process-Xref

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Xref extends XrefStream

Com\Tecnick\Pdf\Parser\Process\Xref

Process XREF

Tags
since
2011-05-23
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2015 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-pdf-parser

Table of Contents

$mrkoff  : array<string|int, mixed>
Store the processed offsets
$xref  : array<string|int, mixed>
XREF data.
decodeXref()  : array<string|int, mixed>
Decode the Cross-Reference section
decodeXrefStream()  : array<string|int, mixed>
Decode the Cross-Reference Stream section
getRawObject()  : array<string|int, mixed>
Get object type, raw value and offset to next object
getTrailerData()  : array<string|int, mixed>
Decode the Cross-Reference section
getXrefData()  : array<string|int, mixed>
Get Cross-Reference (xref) table and trailer data from PDF document data.
minDistance()  : mixed
Return minimum distance for PNG unpredictor
pngUnpredictor()  : mixed
PNG Unpredictor
processAngular()  : mixed
Process \x3C LESS-THAN SIGN and \x3E GREATER-THAN SIGN
processBracket()  : mixed
Process array content \x5B LEFT SQUARE BRACKET and \x5D RIGHT SQUARE BRACKET
processDdata()  : mixed
Process ddata
processDefault()  : mixed
Process default
processDefaultName()  : bool
Process default
processObjIndexes()  : mixed
Process object indexes
processParenthesis()  : mixed
Process literal string object \x28 LEFT PARENTHESIS and \x29 RIGHT PARENTHESIS
processSolidus()  : mixed
Process name object \x2F SOLIDUS
processXrefDecodeParms()  : mixed
Process XREF type DecodeParms
processXrefObjref()  : mixed
Process XREF type Objref
processXrefPrev()  : mixed
Process XREF type Prev
processXrefType()  : mixed
Process XREF types
processXrefTypeFt()  : mixed
Process XREF type

Properties

$mrkoff

Store the processed offsets

protected array<string|int, mixed> $mrkoff = array()

$xref

XREF data.

protected array<string|int, mixed> $xref = array()

Methods

decodeXref()

Decode the Cross-Reference section

protected decodeXref(int $startxref[, array<string|int, mixed> $xref = array() ]) : array<string|int, mixed>
Parameters
$startxref : int

Offset at which the xref section starts (position of the 'xref' keyword).

$xref : array<string|int, mixed> = array()

Previous xref array (if any).

Return values
array<string|int, mixed>

Xref and trailer data.

decodeXrefStream()

Decode the Cross-Reference Stream section

protected decodeXrefStream(int $startxref[, array<string|int, mixed> $xref = array() ]) : array<string|int, mixed>
Parameters
$startxref : int

Offset at which the xref section starts.

$xref : array<string|int, mixed> = array()

Previous xref array (if any).

Return values
array<string|int, mixed>

Xref and trailer data.

getRawObject()

Get object type, raw value and offset to next object

protected getRawObject(int $offset) : array<string|int, mixed>
Parameters
$offset : int

Object offset.

Return values
array<string|int, mixed>

Array containing object type, raw value and offset to next object

getTrailerData()

Decode the Cross-Reference section

protected getTrailerData(array<string|int, mixed> $xref, array<string|int, mixed> $matches) : array<string|int, mixed>
Parameters
$xref : array<string|int, mixed>

Previous xref array (if any).

$matches : array<string|int, mixed>

Matches containing traile sections

Return values
array<string|int, mixed>

Xref and trailer data.

getXrefData()

Get Cross-Reference (xref) table and trailer data from PDF document data.

protected getXrefData(int $offset[, array<string|int, mixed> $xref = array() ]) : array<string|int, mixed>
Parameters
$offset : int

Xref offset (if know).

$xref : array<string|int, mixed> = array()

Previous xref array (if any).

Return values
array<string|int, mixed>

Xref and trailer data.

minDistance()

Return minimum distance for PNG unpredictor

protected minDistance(array<string|int, mixed> &$ddata, mixed $key, array<string|int, mixed> $row, int $idx, int $jdx, int $row_left, int $row_up, int $row_upleft) : mixed
Parameters
$ddata : array<string|int, mixed>
$key : mixed
$row : array<string|int, mixed>
$idx : int
$jdx : int
$row_left : int
$row_up : int
$row_upleft : int
Return values
mixed

pngUnpredictor()

PNG Unpredictor

protected pngUnpredictor(array<string|int, mixed> $sdata, array<string|int, mixed> &$ddata, int $columns, int $prev_row) : mixed
Parameters
$sdata : array<string|int, mixed>
$ddata : array<string|int, mixed>
$columns : int
$prev_row : int
Return values
mixed

processAngular()

Process \x3C LESS-THAN SIGN and \x3E GREATER-THAN SIGN

protected processAngular(string $char, int &$offset, string &$objtype, string &$objval) : mixed
Parameters
$char : string

Symbol to process

$offset : int

Offset

$objtype : string

Object type

$objval : string

Object content

Return values
mixed

processBracket()

Process array content \x5B LEFT SQUARE BRACKET and \x5D RIGHT SQUARE BRACKET

protected processBracket(string $char, int &$offset, string &$objtype, string &$objval) : mixed
Parameters
$char : string

Symbol to process

$offset : int

Offset

$objtype : string

Object type

$objval : string

Object content

Return values
mixed

processDdata()

Process ddata

protected processDdata(array<string|int, mixed> &$sdata, array<string|int, mixed> $ddata, array<string|int, mixed> $wbt) : mixed
Parameters
$sdata : array<string|int, mixed>
$ddata : array<string|int, mixed>
$wbt : array<string|int, mixed>
Return values
mixed

processDefault()

Process default

protected processDefault(int &$offset, string &$objtype, string &$objval) : mixed
Parameters
$offset : int

Offset

$objtype : string

Object type

$objval : string

Object content

Return values
mixed

processDefaultName()

Process default

protected processDefaultName(int &$offset, string &$objtype, string &$objval) : bool
Parameters
$offset : int

Offset

$objtype : string

Object type

$objval : string

Object content

Return values
bool

True in case of match, flase otherwise

processObjIndexes()

Process object indexes

protected processObjIndexes(array<string|int, mixed> &$xref, int &$obj_num, array<string|int, mixed> $sdata) : mixed
Parameters
$xref : array<string|int, mixed>
$obj_num : int
$sdata : array<string|int, mixed>
Return values
mixed

processParenthesis()

Process literal string object \x28 LEFT PARENTHESIS and \x29 RIGHT PARENTHESIS

protected processParenthesis(string $char, int &$offset, string &$objtype, string &$objval) : mixed
Parameters
$char : string

Symbol to process

$offset : int

Offset

$objtype : string

Object type

$objval : string

Object content

Return values
mixed

processSolidus()

Process name object \x2F SOLIDUS

protected processSolidus(string $char, int &$offset, string &$objtype, string &$objval) : mixed
Parameters
$char : string

Symbol to process

$offset : int

Offset

$objtype : string

Object type

$objval : string

Object content

Return values
mixed

processXrefDecodeParms()

Process XREF type DecodeParms

protected processXrefDecodeParms(array<string|int, mixed> $sarr, int $key, int &$columns) : mixed
Parameters
$sarr : array<string|int, mixed>
$key : int
$columns : int
Return values
mixed

processXrefObjref()

Process XREF type Objref

protected processXrefObjref(string $type, array<string|int, mixed> $sarr, mixed $key, array<string|int, mixed> &$xref) : mixed
Parameters
$type : string
$sarr : array<string|int, mixed>
$key : mixed
$xref : array<string|int, mixed>
Return values
mixed

processXrefPrev()

Process XREF type Prev

protected processXrefPrev(array<string|int, mixed> $sarr, int $key, int &$prevxref) : mixed
Parameters
$sarr : array<string|int, mixed>
$key : int
$prevxref : int
Return values
mixed

processXrefType()

Process XREF types

protected processXrefType(array<string|int, mixed> $sarr, array<string|int, mixed> &$xref, array<string|int, mixed> &$wbt, int &$index_first, int &$prevxref, int &$columns, bool &$valid_crs, bool $filltrailer) : mixed
Parameters
$sarr : array<string|int, mixed>
$xref : array<string|int, mixed>
$wbt : array<string|int, mixed>
$index_first : int
$prevxref : int
$columns : int
$valid_crs : bool
$filltrailer : bool
Return values
mixed

processXrefTypeFt()

Process XREF type

protected processXrefTypeFt(string $type, array<string|int, mixed> $sarr, mixed $key, array<string|int, mixed> &$xref, bool $filltrailer) : mixed
Parameters
$type : string
$sarr : array<string|int, mixed>
$key : mixed
$xref : array<string|int, mixed>
$filltrailer : bool
Return values
mixed
 

© 2004-2021 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy