Property | Type | Description | |
---|---|---|---|
$outputFormat | |||
$page | |||
$pdfFile | |||
$resolution | |||
$validOutputFormats |
Method | Description | |
---|---|---|
__construct ( string $pdfFile ) | ||
getImageData ( string $pathToImage ) : Imagick | Return raw image data. | |
getNumberOfPages ( ) : integer | Get the number of pages in the pdf file. | |
isValidOutputFormat ( $outputFormat ) : boolean | Determine if the given format is a valid output format. | |
saveAllPagesAsImages ( string $directory, string $prefix = '' ) : array | Save the file as images to the given directory. | |
saveImage ( string $pathToImage ) : boolean | Save the image to the given path. | |
setOutputFormat ( string $outputFormat ) | Set the output format. | |
setPage ( integer $page ) | Set the page number that should be rendered. | |
setResolution ( integer $resolution ) | Set the raster resolution. |
Method | Description | |
---|---|---|
determineOutputFormat ( $pathToImage ) : string | Determine in which format the image must be rendered. |
public __construct ( string $pdfFile ) | ||
$pdfFile | string | The path to the pdffile. |
protected determineOutputFormat ( $pathToImage ) : string | ||
$pathToImage | ||
return | string |
public getImageData ( string $pathToImage ) : Imagick | ||
$pathToImage | string | |
return | Imagick |
public getNumberOfPages ( ) : integer | ||
return | integer |
public isValidOutputFormat ( $outputFormat ) : boolean | ||
$outputFormat | ||
return | boolean |
public setOutputFormat ( string $outputFormat ) | ||
$outputFormat | string |
public setResolution ( integer $resolution ) | ||
$resolution | integer |