addPage('/home/joe/page.html');
//$pdf->addPage('....');
//$pdf->addPage('http://www.google.es');
//$url = "http://www.iodrox.com/gnrta/ver_entrevista.php?id=" .$_POST["id"] ."\&cod_indent="
// . $_POST["cod_indent"] ."\&nombre_usuario=" . urlencode ($_POST["nombre_usuario"]) . "\&PDF=1";
if(isset($_POST["p"]))
$url = "http://www.iodrox.com/gnrta/".$_POST["url"]."?id=" .$_POST["id"] ."\&cod_indent="
. $_POST["cod_indent"] ."\&nombre_usuario=" . urlencode ($_POST["nombre_usuario"]) . "\&p=".$_POST["p"]. "\&PDF=1";
else
$url = "http://www.iodrox.com/gnrta/".$_POST["url"]."?id=" .$_POST["id"] ."\&cod_indent="
. $_POST["cod_indent"] ."\&nombre_usuario=" . urlencode ($_POST["nombre_usuario"]) . "\&PDF=1";
$pdf->addPage($url);
// Add a cover (same sources as above are possible)
//$pdf->addCover('mycover.html');
// Add a Table of contents
//$pdf->addToc();
// Save the PDF
//$pdf->saveAs('/tmp/new.pdf');
// ... or send to client for inline display
$pdf->send();
//echo $url;
}else{
echo "Service not available";
}