SetaPDF_Extractor_Strategy_AbstractStrategy Abstract class representing an extraction strategy.

File: /SetaPDF/Extractor/Strategy/AbstractStrategy.php

Class hierarchy

Summary

Properties

$_cleanStreamCallback

A callback that is called before processing a stream.


Methods

__construct()

The constructor.

_accept()

Proxy method that forwards the call to a filter instance if available.

Parameters
$textItem : SetaPDF_Extractor_TextItem
 
See

_getSubInstance()

Get an instance of the same strategy for processing an other stream (e.g. a Form XObject stream).

Parameters
$gs : SetaPDF_Core_Canvas_GraphicState
 

getCleanStreamCallback()

Get the callback that is called before a stream is processed.

getResult()

abstract public mixed SetaPDF_Extractor_Strategy_AbstractStrategy::getResult ( string $stream, SetaPDF_Core_Type_Dictionary $resources )

Get the strategy specific result.

Parameters
$stream : string
 
$resources : SetaPDF_Core_Type_Dictionary
 

process()

Processes a stream through this strategy.

The result is an array of SetaPDF_Extractor_TextItem instances.

Parameters
$stream : string
 
$resources : SetaPDF_Core_Type_Dictionary
 

setCleanStreamCallback()

public void SetaPDF_Extractor_Strategy_AbstractStrategy::setCleanStreamCallback ( [ callable|null $callback = null ] )

Set a callback that is called before processing a stream.

Parameters
$callback : callable|null
 

setFilter()