略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDF_open_memory_image

2024-11-15

PDF_open_memory_image

(PHP 4, PECL pdflib >= 1.0.0)

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

说明

PDF_open_memory_image ( resource $p , resource $image ) : int

This function is not supported by PDFlib GmbH.

add a note add a note

User Contributed Notes 1 note

up
0
leela at leela dot ws
16 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);

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

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3