Use the function...... :rolleyes:
Image($file,$x,$y,$w=0,$h=0,$type='',$link='',$paint=true)
HTML2FPDF uses FPDF class lib. ,So you must have to use fpdf function to genrate proper pdf output.
Here i am added only image function in your code... :o
checkit out...... :p
<?
require_once('..\html2pdf\html2fpdf.php');
ob_start();
session_start();
require('..\conectar.php');
require('..\javascript\botonderecho.js');
if ($SESSION['autentificado'] != "si" or $SESSION['administrador'] != "si")
{
echo ( '<META HTTP-EQUIV="Refresh" CONTENT="0;URL=../errores/error1.php"> ');
}
else
{
<? $pdf= new HTML2FPDF();?>
<table width=100% border=0><tr><th width=25%>
<?php $pdf->Image("../images/logo.jpg");?></th><th width=50%><center><font size=4 face=Arial, Helvetica, sans-serif>LISTADO DE AGROQUÍMICOS</center></th><th width=25%><div align=center><b>Fecha: <?echo(date("d/m/y"));?></b></th></table><br>
<center><table width=600 border=1><tr><th width=5% bgcolor=#006699><div align=center><b><font color=#FFFFFF face=Geneva, Arial, Helvetica, sans-serif size=2>Nº</th><th width=30% bgcolor=#006699><div align=center><b><font color=#FFFFFF face=Geneva, Arial, Helvetica, sans-serif size=2>NOMBRE</th><th width=65% bgcolor=#006699><div align=center><b><font color=#FFFFFF face=Geneva, Arial, Helvetica, sans-serif size=2>CARACTERÍSTICA</th></tr>
<?
$consulta='select nombre, caracteristica from agroquimico order by nombre;';
$result=pg_query($consulta) or die('Consulta fallida: ' . pg_last_error());
$num =1;
while ($row=pg_fetch_array($result))
{?>
<tr><th><div align=left><font face=Geneva, Arial, Helvetica, sans-serif size=1><?echo($num)?></th>
<th><div align=left><font face=Geneva, Arial, Helvetica, sans-serif size=1>'.$row["nombre"].'</th>
<th><div align=left><font face=Geneva, Arial, Helvetica, sans-serif size=1>'.$row["caracteristica"].'</th></tr><?}?>
</table></center>
<?php
pg_free_result($result);
$htmlbuffer=ob_get_contents();
ob_end_clean();
$pdf->AddPage();
$pdf->writeHTML($htmlbuffer);
$pdf->Output();}?>