Re: Bug #10606: function pdf_open_memory_image undefined function

From: Date: Thu, 03 May 2001 15:09:28 +0000
Subject: Re: Bug #10606: function pdf_open_memory_image undefined function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53632@lists.php.net to get a copy of this message
From pdf.c: -------------------------------------------- #if HAVE_LIBGD13 /* {{{ proto int pdf_open_memory_image(int pdf, int image) Takes an GD image and returns an image for placement in a PDF document */ PHP_FUNCTION(pdf_open_memory_image) { -------------------------------------------- This "HAVE_LIBGD13" is missing in the pdf.dsp file. But is the gd extension build by default for Windows binaries? --Jani On 2 May 2001 Yann.Barrault@yahoo.fr wrote: >From: Yann.Barrault@yahoo.fr >Operating system: Windows 98 SE >PHP version: 4.0.5 >PHP Bug Type: *PDF functions >Bug description: function pdf_open_memory_image undefined function > >I use PHP 4.0.5 and Apache 1.3.12 > >My script : ><? >$pdf=pdf_new(); >$im = ImageCreate(100, 100); >$col = ImageColorAllocate($im, 80, 45, 190); >ImageFill($im, 10, 10, $col); >$pim = PDF_open_memory_image($pdf, $im); >ImageDestroy($im); >PDF_place_image($pdf, $pim, 100, 100, 1); >PDF_close_image($pdf, $pim); >?> > >The server's answer : > >Fatal error: Call to undefined function: pdf_open_memory_image() in c:\web\essaipdfnew.php on >line 6 > > > >

« previous php.dev (#53632) next »