TextExtractorInterface

An interface for text extractors

Table of Contents

Methods

canExtractText()  : bool
Checks if the given file can be read by this extractor
extractText()  : string
The actual text extraction.

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.

public extractText(FileInterface $file) : string

Should return a string of the file's content

Parameters
$file : FileInterface
Return values
string

        
On this page

Search results