SetaPDF_Extractor The main class of the SetaPDF-Extractor Component

File: /SetaPDF v2/Extractor.php

Class hierarchy

Summary

Constants

VERSION

const string SetaPDF_Extractor::VERSION = '2.24.0.1049'

The version


Properties

$_document

The document instance

$_strategy


Methods

__construct()

The constructor.

Parameters
$document : SetaPDF_Core_Document
 
$strategy : SetaPDF_Extractor_Strategy_AbstractStrategy|null
 

cleanUp()

public SetaPDF_Extractor::cleanUp (
void
): void

Release cycled references.

getResultByPageNumber()

public SetaPDF_Extractor::getResultByPageNumber (
integer $pageNumber [, boolean $cleanUp = null ]
): SetaPDF_Extractor_Result_Segment|string|string[]

Get the result by the default or individual strategy of a specific page.

Parameters
$pageNumber : integer
 
$cleanUp : boolean

Defines if the strategy should automatically call the cleanUp() method on internally used objects if they are not needed anymore. By default this parameter evaluates to true on PHP below version 5.3.

See

setStrategy()

Set the extraction strategy.

Parameters
$strategy : SetaPDF_Extractor_Strategy_AbstractStrategy