El error ha de estar aca, ya que si imprimo el solo "hola" en remitoPdf.php, igual sale el maldito signo.
crearPdf.php
Código PHP:
<?php
session_start();
/**
* HTML2PDF Librairy - example
*
* HTML => PDF convertor
* distributed under the LGPL License
*
* @author Laurent MINGUET <[email protected]>
*
* isset($_GET['vuehtml']) is not mandatory
* it allow to display the result in the HTML format
*/
if(isset($_SESSION['usuario'])){
// get the HTML
ob_start();
include_once('remitoPdf.php');
$content = ob_get_clean();
$remito = $_REQUEST['remito'];
// convert in PDF
require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');;
try
{
$html2pdf = new HTML2PDF('P', 'A4', 'es');
$html2pdf->writeHTML($content);
$html2pdf->Output($remito.'.pdf','I');
}
catch(HTML2PDF_exception $e) {
echo $e;
exit;
}
}else{
header('Location: login.php');
}
?>