[Chameleon-dev] [Bug 1480] Print production Widget ERROR

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Jun 7 10:32:50 EDT 2006


http://bugzilla.maptools.org/show_bug.cgi?id=1480





------- Additional Comments From jmckenna at dmsolutions.ca  2006-06-07 10:32 -------
ok, I have a proposed patch/solution for MS4W and Chameleon.  Skynewbie can test
and report results:

1) download php_pdf.dll for php-5.1.2 from
http://pecl4win.php.net/ext.php/php_pdf.dll (even though MS4W uses php-5.1.4
this does not seem to be an issue)

2) place this file in /ms4w/Apache/php/ext/

3) Open the following in a text editor:
/chameleon/htdocs/widgets/PrintProduction/preview.php

4) remove lines 248-250:

   <         
   <         // position image
   <         $image = pdf_open_image_file($pdf, "png", $szTmpImage);

5) replace with:

   >         //check the PHP version and open image
   >         if (version_compare(phpversion(), "5.0.0", ">="))
   >         {
   >           // php5
   >           $image = pdf_load_image($pdf, "png", $szTmpImage, "");
   >         } 
   >        
   >         else 
   >         {
   >           // not php5
   >           $image = pdf_open_image_file($pdf, "png", $szTmpImage);
   >         }  
   >         
   >         // position image

If this is accepted by everyone then it will be added to MS4W 2.1, and I can
commit the change into Chameleon.  Chameleon will need a release right away with
this fix.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list