Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/05/2010, 19:42
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: html2fpdf - errores de buffer?

UF ! Ahora descubrí que el problema era con las images gif!

Para que las gif funcionen hay que modificar la funcion _parsegif() en el archivo fpdf.php

Por esto:
Cita:
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;
}
referencia: http://code.google.com/p/html2pdf/issues/detail?id=2

Ahora el tema para resolver son las imagenes PNG con transparencia. Las comunes no dan problemas, pero las de transparencia tiran error:

FPDF error: Alpha channel not supported