BlaBla.cn

PHP: cpdf_place_inline_image - Manual

BlaBla.cn
cpdf_rect > <cpdf_page_init
Last updated: Wed, 19 Mar 2008

cpdf_place_inline_image

(PHP 4, PHP 5 <= 5.0.5)

cpdf_place_inline_image — Places an image on the page

说明

bool cpdf_place_inline_image ( int $pdf_document , int $image , float $x_coor , float $y_coor , float $angle , float $width , float $height , int $gsave [, int $mode ] )

Places an image created with the PHP image functions on the page. The image can be scaled at the same time.

Note: This function is only available if PHP was compiled with the GD Graphics Library 1.3. See the GD extension installation instructions for further information.

参数

pdf_document

The document handle, returned by cpdf_open().

image

An image created with the PHP image functions

x_coor

The x-coordinate of the image

y_coor

The y-coordinate of the image

angle

The image rotation angle, in degrees

width

The image width

height

The image height

gsave

Should be non-zero to allow this function to operate correctly

mode

The optional parameter mode determines the unit length. If it is 0 or omitted the default unit as specified for the page is used. Otherwise the coordinates are measured in postscript points disregarding the current unit.

返回值

如果成功则返回 TRUE ,失败则返回 FALSE




cpdf_rect > <cpdf_page_init
Last updated: Wed, 19 Mar 2008
 
 
BlaBla.cn

© 2005-2008 BlaBla.cn 版权所有