The Server Pages
:: TSP Menu
- Home
- Authors
- Glossary
- RSS Feed

:: Servers
- CPanel
- Hosting
- Linux
- Windows

:: Webmaster
- Databases
- Design
- PHP
- Search Engines

:: Scripts
- Scripts

:: Documentation
- PHP Manual

:: Other
- Errors & Solutions
- TechPunt
- Wojjie

search for in the

PDF_open_pdi_document> <PDF_open_jpeg
[edit] Last updated: Sat, 12 May 2012

view this page in

PDF_open_memory_image

(PHP 4, PECL pdflib >= 1.0.0)

PDF_open_memory_imageOpen image created with PHP's image functions [not supported]

Description

int PDF_open_memory_image ( resource $p , resource $image )

This function is not supported by PDFlib GmbH.



add a note add a note User Contributed Notes PDF_open_memory_image
leela at leela dot ws 19-Nov-2002 04:36
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);

 
show source | credits | sitemap | contact | advertising | mirror sites