My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 30 days

  • Dec 16, 2009
    issue 2 (FPDF error: GIF parser: unable to open file .gif file.) commented on by ismail.fahmi   -   Thanks, falco20019. After replacing my gif.php with your version, my script works now.
    Thanks, falco20019. After replacing my gif.php with your version, my script works now.

Earlier this year

  • Sep 14, 2009
    issue 2 (FPDF error: GIF parser: unable to open file .gif file.) commented on by falco20019   -   This can easily be fixed! PHP5 seems to have changed the order of assigning a value to a variable when it is passed by reference. I have attached my gif.php where I have done the needed changes. There were some function calls by reference that got called like this: $this->skipExt($data, $len = 0) In PHP4, $len first got the value 0 and then the function will be called with a reference to $len. In PHP5, the function get's called with a reference to $len and THEN give it the value 0 and overwrite the needed value...
    This can easily be fixed! PHP5 seems to have changed the order of assigning a value to a variable when it is passed by reference. I have attached my gif.php where I have done the needed changes. There were some function calls by reference that got called like this: $this->skipExt($data, $len = 0) In PHP4, $len first got the value 0 and then the function will be called with a reference to $len. In PHP5, the function get's called with a reference to $len and THEN give it the value 0 and overwrite the needed value...
  • Sep 14, 2009
    issue 2 (FPDF error: GIF parser: unable to open file .gif file.) commented on by falco20019   -   This can easily be fixed! PHP5 seems to have changed the order of assigning a value to a variable when it is passed by reference. I have attached my gif.php where I have done the needed changes. There were some function calls by reference that got called like this: $this->skipExt($data, $len = 0) In PHP4, $len first got the value 0 and then the function will be called with a reference to $len. In PHP5, the function get's called with a reference to $len and THEN give it the value 0 and overwrite the needed value...
    This can easily be fixed! PHP5 seems to have changed the order of assigning a value to a variable when it is passed by reference. I have attached my gif.php where I have done the needed changes. There were some function calls by reference that got called like this: $this->skipExt($data, $len = 0) In PHP4, $len first got the value 0 and then the function will be called with a reference to $len. In PHP5, the function get's called with a reference to $len and THEN give it the value 0 and overwrite the needed value...
  • Sep 01, 2009
    issue 3 (Paragraphs contains some word in bold are rendered without s...) reported by david.si...@tronsystems.co.uk   -   What steps will reproduce the problem? 1. Create a page containing e.g. "this is <strong>a test</strong>." 2. Run that page through html2pdf What is the expected output? What do you see instead? The output should display "this is a test." with "a test" being rendered as strong (font-weight bold). Instead, the output is "this isa test." with "a test" rendered as strong. What version of the product are you using? On what operating system? Latest stable download on both Windows and Solaris. Please provide any additional information below. Line 38 of the file "inline.content.builder.normal.php" currently reads: $last_whitespace = substr(strlen($content)-1, 1); If this is changed to: $last_whitespace = (substr($content, strlen($content)-1, 1) == " "); then the code works as expected, and the spaces between the normal and strong text are rendered correctly in the pdf output.
    What steps will reproduce the problem? 1. Create a page containing e.g. "this is <strong>a test</strong>." 2. Run that page through html2pdf What is the expected output? What do you see instead? The output should display "this is a test." with "a test" being rendered as strong (font-weight bold). Instead, the output is "this isa test." with "a test" rendered as strong. What version of the product are you using? On what operating system? Latest stable download on both Windows and Solaris. Please provide any additional information below. Line 38 of the file "inline.content.builder.normal.php" currently reads: $last_whitespace = substr(strlen($content)-1, 1); If this is changed to: $last_whitespace = (substr($content, strlen($content)-1, 1) == " "); then the code works as expected, and the spaces between the normal and strong text are rendered correctly in the pdf output.
  • May 13, 2009
    issue 2 (FPDF error: GIF parser: unable to open file .gif file.) commented on by shantanu.bhadoria   -   I had thought of this solution but this is a temporary solution and it involves expensive file operations which we should rather avoid esp if we are creating a pdf with lots of gif images. There should be a way to do this without the file operations.
    I had thought of this solution but this is a temporary solution and it involves expensive file operations which we should rather avoid esp if we are creating a pdf with lots of gif images. There should be a way to do this without the file operations.
  • May 13, 2009
    issue 2 (FPDF error: GIF parser: unable to open file .gif file.) commented on by jim.kung   -   You can easily fix this issue by replacing the function _parsegif from fpdf version 1.6. Here's the replacement code: function _parsegif($file) { //Extract info from a GIF file (via PNG conversion) if(!function_exists('imagepng')) $this->Error('GD extension is required for GIF support'); if(!function_exists('imagecreatefromgif')) $this->Error('GD has no GIF read support'); $im=imagecreatefromgif($file); if(!$im) $this->Error('Missing or incorrect image file: '.$file); imageinterlace($im,0); $tmp=tempnam('.','gif'); if(!$tmp) $this->Error('Unable to create a temporary file'); if(!imagepng($im,$tmp)) $this->Error('Error while saving to temporary file'); imagedestroy($im); $info=$this->_parsepng($tmp); unlink($tmp); return $info; }
    You can easily fix this issue by replacing the function _parsegif from fpdf version 1.6. Here's the replacement code: function _parsegif($file) { //Extract info from a GIF file (via PNG conversion) if(!function_exists('imagepng')) $this->Error('GD extension is required for GIF support'); if(!function_exists('imagecreatefromgif')) $this->Error('GD has no GIF read support'); $im=imagecreatefromgif($file); if(!$im) $this->Error('Missing or incorrect image file: '.$file); imageinterlace($im,0); $tmp=tempnam('.','gif'); if(!$tmp) $this->Error('Unable to create a temporary file'); if(!imagepng($im,$tmp)) $this->Error('Error while saving to temporary file'); imagedestroy($im); $info=$this->_parsepng($tmp); unlink($tmp); return $info; }
  • May 13, 2009
    issue 2 (FPDF error: GIF parser: unable to open file .gif file.) commented on by jim.kung   -   You can easily fix this problem by replacing the _parsegif function. I replaced the _parsegif with the one from fpdf version 1.6. Here's the code replacement: // replace this by Jim Kung so that gif will work function _parsegif($file) { //Extract info from a GIF file (via PNG conversion) if(!function_exists('imagepng')) $this->Error('GD extension is required for GIF support'); if(!function_exists('imagecreatefromgif')) $this->Error('GD has no GIF read support'); $im=imagecreatefromgif($file); if(!$im) $this->Error('Missing or incorrect image file: '.$file); imageinterlace($im,0); $tmp=tempnam('.','gif'); if(!$tmp) $this->Error('Unable to create a temporary file'); if(!imagepng($im,$tmp)) $this->Error('Error while saving to temporary file'); imagedestroy($im); $info=$this->_parsepng($tmp); unlink($tmp); return $info; }
    You can easily fix this problem by replacing the _parsegif function. I replaced the _parsegif with the one from fpdf version 1.6. Here's the code replacement: // replace this by Jim Kung so that gif will work function _parsegif($file) { //Extract info from a GIF file (via PNG conversion) if(!function_exists('imagepng')) $this->Error('GD extension is required for GIF support'); if(!function_exists('imagecreatefromgif')) $this->Error('GD has no GIF read support'); $im=imagecreatefromgif($file); if(!$im) $this->Error('Missing or incorrect image file: '.$file); imageinterlace($im,0); $tmp=tempnam('.','gif'); if(!$tmp) $this->Error('Unable to create a temporary file'); if(!imagepng($im,$tmp)) $this->Error('Error while saving to temporary file'); imagedestroy($im); $info=$this->_parsepng($tmp); unlink($tmp); return $info; }
  • Apr 07, 2009
    issue 2 (FPDF error: GIF parser: unable to open file .gif file.) commented on by shantanu.bhadoria   -   I cam across the same issue and did some minor debugging. I see that ord($data{0}) on load() function of CGIFIMAGE class returns 0x47 resulting in this message. I hope that gives some pointer. I am attempting to fix this myself. will update if I come to something. Please mail me if a solution is found. Regards, Shantanu Bhadoria
    I cam across the same issue and did some minor debugging. I see that ord($data{0}) on load() function of CGIFIMAGE class returns 0x47 resulting in this message. I hope that gives some pointer. I am attempting to fix this myself. will update if I come to something. Please mail me if a solution is found. Regards, Shantanu Bhadoria

Older

  • Nov 20, 2008
    r28 ([No log message]) committed by kbourn   -   [No log message]
    [No log message]
  • Nov 18, 2008
    issue 2 (FPDF error: GIF parser: unable to open file .gif file.) reported by vickygoelk   -   I have some issue after using the html2pdf script. I am using php5 version and i know that script is not compatible on php5 version, but know about these things i try that script on php5 caught in issue. Issue is FPDF error: GIF parser: unable to open file .gif file. Is there any way to to run this script on php5. Please help us if it is possible.. Thanks..
    I have some issue after using the html2pdf script. I am using php5 version and i know that script is not compatible on php5 version, but know about these things i try that script on php5 caught in issue. Issue is FPDF error: GIF parser: unable to open file .gif file. Is there any way to to run this script on php5. Please help us if it is possible.. Thanks..
  • Nov 18, 2008
    issue 1 (SVN Missing) commented on by vickygoelk   -   I have some issue after using the html2pdf script. I am using php5 version and i know that script is not compatible on php5 version, but know about these things i try that script on php5 caught in issue. Issue is FPDF error: GIF parser: unable to open file .gif file. Is there any way to to run this script on php5. Please help us if it is possible.. Thanks..
    I have some issue after using the html2pdf script. I am using php5 version and i know that script is not compatible on php5 version, but know about these things i try that script on php5 caught in issue. Issue is FPDF error: GIF parser: unable to open file .gif file. Is there any way to to run this script on php5. Please help us if it is possible.. Thanks..
  • Nov 14, 2008
    issue 1 (SVN Missing) commented on by schweini   -   thirded :)
    thirded :)
 
Hosted by Google Code