CropResult
in package
implements
Stringable
Result of a crop utility inference.
Table of Contents
Interfaces
- Stringable
Properties
Methods
- __construct() : mixed
- __toString() : string
- extractFromInputSource() : CropFiles
Properties
$crops
public
array<string|int, CropItem>
$crops
Crops extracted from the image.
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()
public
extractFromInputSource(LocalInputSource $inputSource) : CropFiles
Parameters
- $inputSource : LocalInputSource
-
The input source from which to extract the pages.
Return values
CropFiles —The extracted PDFs.