Buon giorno sto utilizzando la class WaterMark, presa dal sito fpdf.org.
Il problema è che il pdf che devo far riempire all'utente ha 3 pagine.
Dalla seconda pagina in pratica, il testo che devo integrare nel pdf,invece di sovrapporsi alla casella da riempire, si va a sommare al testo già presente, cosi da spostare il contenuto dello stesso pdf più in basso.
Questo è quello che faccio:
Codice PHP:
public function doWaterMark()    {        $currentFile $this->file;        $newFile $this->newFile;                $pagecount $this->pdf->setSourceFile($currentFile);        for($i 1$i <= $pagecount$i++){            $this->pdf->addPage();            $tplidx $this->pdf->importPage($i);            $this->pdf->useTemplate($tplidx00210);            // now write some text above the imported page            $this->pdf->SetFont('Arial', '', 11);//font size            $this->pdf->SetTextColor(0,0,0);            //$this->_rotate(55);            //$this->pdf->Write(0,$this->wmText);       if ($i == 1) {
                               
if($_POST['txtCodFiscPartIvaBis']!=""){//<-- ultimo valore a fine prima pagina                    $this->pdf->SetXY(58, 214.5);                    $this->pdf->Write(0,$_POST['txtCodFiscPartIvaBis']);                }                                if($_POST['txtRecapitiBis']!=""){//<-- primo valore inizio seconda pagina                    $this->pdf->SetXY(58, 220.5);                    $this->pdf->Write(0,$_POST['txtRecapitiBis']);                }
           
}
       }
$this->pdf->Output($newFile'F');

Sapete come risolvere?
PS: è molto urgente, scusatemi so che non ci sono solo io, ma sono in estrema difficoltà.Grazie in anticipo come sempre