PHP 5.6.0RC3 is available

PDF_open_memory_image

(PHP 4, PECL pdflib >= 1.0.0)

PDF_open_memory_imageAbrir una imagen creada con las funciones de imagen de PHP [no soportada]

Descripción

int PDF_open_memory_image ( resource $p , resource $image )

Esta función no está soportada por PDFlib GmbH.

add a note add a note

User Contributed Notes 1 note

up
1
leela at leela dot ws
11 years ago
note that in PHP 4.2.2 and PDF_lib 4.0.1 this function does not support more than 256 colors (only GD 1.x it seems).

WORKS:
$im = ImageCreate(100, 100);
$pim = pdf_open_memory_image($pdf, $im);

DOES NOT WORK:
$im = ImageCreateTrueColor(100, 100);
$pim = pdf_open_memory_image($pdf, $im);

DOES NOT WORK:
$im = ImageCreateFromJPEG("file.jpg");
$pim = pdf_open_memory_image($pdf, $im);
To Top