Prinsfrank_Adapter implements Raw_Text_Adapter
Internal Prinsfrank raw PDF text adapter.
Tags
Interfaces, Classes and Traits
- Raw_Text_Adapter
- Internal extraction boundary; normalization belongs to the PDF facade.
Table of Contents
- $parser_class : string
- Scoped parser class, resolved by the facade.
- __construct() : mixed
- Receive a backend already checked for platform compatibility.
- extract_raw() : string
- Extract raw text and release parser/document references before returning.
- check_encryption() : void
- Reject active AES filters before the backend tries to decrypt them as RC4.
Properties
$parser_class
Scoped parser class, resolved by the facade.
private
string
$parser_class
Tags
Methods
__construct()
Receive a backend already checked for platform compatibility.
public
__construct(string $parser_class) : mixed
Parameters
- $parser_class : string
-
Scoped parser class.
Tags
Return values
mixed —extract_raw()
Extract raw text and release parser/document references before returning.
public
extract_raw(string $file_path) : string
Parameters
- $file_path : string
-
Absolute PDF path.
Tags
Return values
string —check_encryption()
Reject active AES filters before the backend tries to decrypt them as RC4.
private
check_encryption(Document $document) : void
Parameters
- $document : Document
-
Open PDF, already authenticated by the backend.