Cierto y lo haba probado lo que me da un problema con los headers que no consigo ver:
Aqui esta el codigo
Código:
<?php
include('libs/pdf-background/class.ezpdf.php');
include('libs/pdf-background/class.backgroundpdf.php');
$pdf = new backgroundPDF('a4', 'portrait', 'image', array('img'=>'img.jpg'));
$pdf->selectFont('Helvetica.afm');
$pdf->ezText('Background in PDF', 50);
$pdf->ezText('', 12);
$pdf->ezText('Ejemplo de PDF utilizando una imagen como Fondo.', 12);
$pdf->ezNewPage();
$pdf->ezText('Pagina 2', 50);
$pdf->ezStream();
?>
Y aqui los errores
Warning: Cannot modify header information - headers already sent by (output started at /var/www/sumatorio/libs/pdf-background/class.backgroundpdf.php:74) in /var/www/sumatorio/libs/pdf-background/class.pdf.php on line 1916
Warning: Cannot modify header information - headers already sent by (output started at /var/www/sumatorio/libs/pdf-background/class.backgroundpdf.php:74) in /var/www/sumatorio/libs/pdf-background/class.pdf.php on line 1917
Warning: Cannot modify header information - headers already sent by (output started at /var/www/sumatorio/libs/pdf-background/class.backgroundpdf.php:74) in /var/www/sumatorio/libs/pdf-background/class.pdf.php on line 1919