A ver si me pueden ayudar.
Tengo una clase php q me genera recibos en rtf, para imprimirlos uso esta funcion:
Código PHP:
public function printDocument() {
$tmp=tempnam("/tmp","informe");
//die();
$f=fopen($tmp,"w");
// echo $this->content;
fwrite($f,$this->content);
fclose($f);
// app1_clocationBlank("/");
header("Pragma : ");
header("Cache-control: ");
header("Content-type: ".$this->contentType);
header("Content-disposition: attachment;filename=".$this->nombre);
$res=readfile($tmp);
unlink($tmp);
}
Mi pregunta es si una vez enviadas las cabeceras hay alguna forma de cerrar el popup.
Llevo todo el dia intentandolo y no soy capaz.
Gracias por su tiempo