TextExtractorInterface

interface \TYPO3\CMS\Core\Resource\TextExtraction\TextExtractorInterface

Interface for text extractors, which are registered as tagged services via the #[AsTextExtractor] attribute or the 'fal.text_extractor' service tag.

Table of Contents

Methods

canExtractText()  : bool
Checks if the given file can be read by this extractor
extractText()  : string
The actual text extraction, returning a string of the file's content

Methods

canExtractText()

Checks if the given file can be read by this extractor

public canExtractText(FileInterface $file) : bool

Parameters

$file : FileInterface

Return values

bool

extractText()

The actual text extraction, returning a string of the file's content

public extractText(FileInterface $file) : string

Parameters

$file : FileInterface

Return values

string
On this page