setasign\SetaPDF2\Extractor

Extractor The main class of the SetaPDF-Extractor Component

File: /SetaPDF v2/Extractor/Extractor.php
Old class name (alias): \SetaPDF_Extractor

Class hierarchy

Summary

Constants

VERSION

public const string Extractor::VERSION = '2.47.0.2095'

The version


Properties

$_document

The document instance

$_ignoreFaultyStreams

protected bool Extractor::$_ignoreFaultyStreams = false

Defines wether to continue when a stream cannot be decoded or not.

$_strategy


Methods

__construct()

public Extractor::__construct (
\SetaPDF_Core_Document $document,
?\SetaPDF_Extractor_Strategy_AbstractStrategy $strategy = null,
bool $ignoreFaultyStreams = false
)

The constructor.

Parameters
$document : \SetaPDF_Core_Document
 
$strategy : ?\SetaPDF_Extractor_Strategy_AbstractStrategy
 
$ignoreFaultyStreams : bool
 

cleanUp()

public Extractor::cleanUp (
void
): void

Release cycled references.

getResultByPageNumber()

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

Parameters
$pageNumber : int
 
$boundaryBox : string

If set the page boundary is used to limit the result to the rectangle of the given boundary. See \setasign\SetaPDF2\Core\PageBoundaries::XXX_BOX constants for possible values.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

See

getStrategy()

setStrategy()

Set the extraction strategy.

Parameters
$strategy : \SetaPDF_Extractor_Strategy_AbstractStrategy