SplitRange
in package
implements
Stringable
A single document as identified when splitting a multi-document source file.
Table of Contents
Interfaces
- Stringable
Properties
- $documentType : string
- $extractionResponse : ExtractionResponse|null
- $pageRange : array<string|int, int>
Methods
- __construct() : mixed
- __toString() : string
- extractFromInputSource() : ExtractedPdf
- Extracts a single page from the input source based on the specified page range.
Properties
$documentType
public
string
$documentType
Type or classification of the detected object.
$extractionResponse
public
ExtractionResponse|null
$extractionResponse
The extraction response associated with the split.
$pageRange
public
array<string|int, int>
$pageRange
0-based page indexes, where the first integer indicates the start page and the second integer indicates the end page.
Methods
__construct()
public
__construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawResponse) : mixed
Parameters
- $rawResponse : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Raw server response array.
__toString()
public
__toString() : string
Return values
string —String representation.
extractFromInputSource()
Extracts a single page from the input source based on the specified page range.
public
extractFromInputSource(LocalInputSource $inputSource) : ExtractedPdf
Parameters
- $inputSource : LocalInputSource
-
The input source from which to extract the page.
Return values
ExtractedPdf —The extracted PDF.