allora, col seguente codice son riuscito a generare un nuovo pdf partendo da del testo e appicicandoci sopra un altro pdf come watermark, ma non è quello che voglio fare
Codice PHP:
require('fpdi.php');
$pdf= new fpdi();
$pdf->setSourceFile("logo.pdf");
$tplidx = $pdf->ImportPage(1);
$pdf->AddPage();
$pdf->useTemplate($tplidx,10,10,90);
$pdf->SetFont('Arial','',12);
$txt='FPDF is a PHP class which allows to generate PDF files with straight PHP, that is to say '.
'without using the PDFlib library. The advantage is that the latter requires a fee for a '.
'commercial usage. F from FPDF stands for Free: you may use it for any kind of usage and '.
'modify it to suit your needs.';
for($i=0;$i<25;$i++)
$pdf->Write(5,$txt);
$pdf->Output("ciccio.pdf","F");
io invece il watermark devo aggiungerlo al volo ad un pdf che estraggo da un DB