Property | Type | Description | |
---|---|---|---|
$_border | PHPRtfLite_Border | rtf border | |
$_height | float | resize to height | |
$_imageHeight | integer | original image height | |
$_imageRtfType | string | image rtf type | |
$_imageWidth | float | original image width | |
$_isMissing | boolean | flag, true if image file is missing | |
$_parFormat | PHPRtfLite_ParFormat | par format | |
$_rtf | PHPRtfLite | rtf document | |
$_stream | resource | stream as php resource | |
$_width | float | resize to width |
Method | Description | |
---|---|---|
__construct ( PHPRtfLite $rtf, resource $stream, float $width = null, float $height = null ) | constructor | |
__destruct ( ) | destructor - closes stream | |
createFromFile ( PHPRtfLite $rtf, string $file, float $width = null, float $height = null ) : PHPRtfLite_Image | creates rtf image from file | |
createFromString ( PHPRtfLite $rtf, string $string, string $type, float $width = null, float $height = null ) : PHPRtfLite_Image | creates rtf image from string | |
free ( ) | ||
getBorder ( ) : PHPRtfLite_Border | gets border | |
getHeight ( ) : float | gets image height | |
getParFormat ( ) : PHPRtfLite_ParFormat | gets paragraph format for image | |
getWidth ( ) : float | gets image width | |
isMissing ( ) | ||
render ( ) | renders rtf image for rtf document | |
setBorder ( PHPRtfLite_Border $border ) | sets border | |
setHeight ( float $height ) | sets image height | |
setIsMissing ( ) | ||
setParFormat ( PHPRtfLite_ParFormat $parFormat ) | sets paragraph format for image | |
setWidth ( float $width ) | sets image width |
Method | Description | |
---|---|---|
getImageTypeAsRtf ( ) : string | gets image rtf type | |
setImageHeight ( float $height ) | sets image original height | |
setImageWidth ( float $width ) | sets image original width | |
writeIntoRtfStream ( integer $startFrom ) | writes image into rtf stream |
Method | Description | |
---|---|---|
create ( PHPRtfLite $rtf, resource $stream, string $type, float $width, float $height ) : PHPRtfLite_Image_Wmf | PHPRtfLite_Image_Gd | PHPRtfLite_Image | factory method creates rtf image from stream | |
createMissingImage ( PHPRtfLite $rtf, float $width, float $height ) : PHPRtfLite_Image_Gd | creates a missing image instance | |
getImageRtfHeight ( ) : integer | gets rtf image height | |
getImageRtfWidth ( ) : integer | gets rtf image width | |
getMissingImage ( ) | adds rtf image code to show that the file is missing |
public __construct ( PHPRtfLite $rtf, resource $stream, float $width = null, float $height = null ) | ||
$rtf | PHPRtfLite | |
$stream | resource | |
$width | float | optional |
$height | float | optional |
public getBorder ( ) : PHPRtfLite_Border | ||
return | PHPRtfLite_Border |
protected getImageTypeAsRtf ( ) : string | ||
return | string |
public getParFormat ( ) : PHPRtfLite_ParFormat | ||
return | PHPRtfLite_ParFormat |
public setBorder ( PHPRtfLite_Border $border ) | ||
$border | PHPRtfLite_Border |
protected setImageHeight ( float $height ) | ||
$height | float |
protected setImageWidth ( float $width ) | ||
$width | float |
public setParFormat ( PHPRtfLite_ParFormat $parFormat ) | ||
$parFormat | PHPRtfLite_ParFormat |
protected writeIntoRtfStream ( integer $startFrom ) | ||
$startFrom | integer |
protected PHPRtfLite_Border $_border | ||
return | PHPRtfLite_Border |
protected int $_imageHeight | ||
return | integer |
protected bool $_isMissing | ||
return | boolean |
protected PHPRtfLite_ParFormat $_parFormat | ||
return | PHPRtfLite_ParFormat |