略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDF_place_image

2024-11-15

PDF_place_image

(PHP 4, PECL pdflib >= 1.0.0)

PDF_place_imagePlace image on the page [deprecated]

说明

PDF_place_image ( resource $pdfdoc , int $image , float $x , float $y , float $scale ) : bool

Places an image and scales it. 成功时返回 TRUE, 或者在失败时返回 FALSE

This function is deprecated since PDFlib version 5, use PDF_fit_image() instead.

add a note add a note

User Contributed Notes 3 notes

up
2
admin at internettech dot ca
13 years ago
Contrary to the previous post, this function (pdf_place_image)  is deprecated.
Use pdf_fit_image() instead.  pdf_fit_image() takes the same parameters but read the PDFlib manual.

You should be using and reading the PDFlib manual along with the PHP manual to be current while writing your code.

To see all the internal functions available in the PDFlib try this:

$arr = get_defined_functions();
foreach(array_values($arr['internal']) as $arrVal){
    if(strtolower(substr($arrVal,0,3))== "pdf") print($arrVal."<br>");
}

Please do your homework before posting a note that contradicts someone else

官方地址:https://www.php.net/manual/en/function.pdf-place-image.php