PHP Doku:: Platziert Bild [veraltet] - function.pdf-place-image.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenPDFPDF FunktionenPDF_place_image

Ein Service von Reinhard Neidl - Webprogrammierung.

PDF Funktionen

<<PDF_pcos_get_string

PDF_place_pdi_page>>

PDF_place_image

(PHP 4, PECL pdflib >= 1.0.0)

PDF_place_imagePlatziert Bild [veraltet]

Beschreibung

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

Platziert ein Bild und skaliert es. Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Diese Funktion ist seit PDFlib Version 5 veraltet, verwenden Sie stattdessen die Funktion PDF_fit_image().


3 BenutzerBeiträge:
- Beiträge aktualisieren...
admin at internettech dot ca
6.08.2005 20:05
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’s note.
stry_cat at yahoo dot com
5.08.2005 15:36
bmironov at jonview dot com on 24-Jun-2003 03:58 said
> This function deprecated since PDFlib v5.0

I think you're confused.  The depreciated function was pdf_put_image not pdf_place_image.

If this is also depreciated then we don't have any functions to add images to a PDF.  Not a good thing.
bob at nijman dot de
2.08.2001 15:08
FYI:
There's a good reason for the fact that we need two functions

(pdf_open_image_file and pdf_place_image)

to insert an image.
This way we can use the same image more than once without having to store it in the PDF again.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)