#30836 [Opn]: Call to undefined function: cpdf_place_inline_image()
| From: | tony2001@php.net | Date: | Wed, 12 Jan 2005 22:48:03 +0000 |
| Subject: | #30836 [Opn]: Call to undefined function: cpdf_place_inline_image() | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365943@lists.php.net to get a copy of this message | ||
ID: 30836
Updated by: tony2001@php.net
Reported By: Peter dot Albertsson at naturesown dot se
Status: Open
-Bug Type: ClibPDF related
+Bug Type: Documentation problem
Operating System: WinXP SP2
PHP Version: 5.0.2
New Comment:
cpdf_place_inline_image() is available only if PHP was compiled with GD
1.3.x.
Making it documentation problem, as it should be stated somewhere in
the docs.
Previous Comments:
------------------------------------------------------------------------
[2004-11-19 13:26:54] Peter dot Albertsson at naturesown dot se
Description:
------------
I get a fatal error:
Fatal error: Call to undefined function: cpdf_place_inline_image()
even though php_cpdf.dll is loaded and other cpdf functions are
working.
Reproduce code:
---------------
$cpdf = cpdf_open(0);
cpdf_page_init($cpdf, 1, 0, 842, 595, 1.0);
$logo = imagecreatefromgif(dirname(__FILE__) .
'/gfx/scandinavia_logo.gif');
cpdf_place_inline_image($cpdf, $logo, 50, 700, 0, imagesx($logo),
imagesy($logo), 0);
Actual result:
--------------
Fatal error: Call to undefined function: cpdf_place_inline_image()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30836&edit=1