Pdf_Parser implements Parser_Interface
Parser for PDF files.
Tags
Interfaces, Classes and Traits
- Parser_Interface
- Interface for document parsers.
Table of Contents
- extract() : string
- Extract plaintext content from the given file.
- is_available() : bool
- Determine whether the PDF parser library is available.
- normalize_text() : string
- Normalize parser output.
- resolve_parser_class() : string
- Resolve the available PDF parser class.
Methods
extract()
Extract plaintext content from the given file.
public
extract(string $file_path) : string
Parameters
- $file_path : string
-
Absolute file path.
Tags
Return values
string —is_available()
Determine whether the PDF parser library is available.
public
static is_available() : bool
Tags
Return values
bool —normalize_text()
Normalize parser output.
private
normalize_text(string $text) : string
Parameters
- $text : string
-
Parser output.
Tags
Return values
string —resolve_parser_class()
Resolve the available PDF parser class.
private
static resolve_parser_class() : string