I'm new to FPDI, until now I just used FPDF to create my PDFs in PHP. Now I wanted to attach some other documents to one of my FPDF reports. So I have the report (with a lot of FPDF cells with texts and some images) and want to add new pages at the end of this report that contain pages from another PDF.
I've used the example at https://www.setasign.com/products/fpdi/about/ to import only one page at the end of the document:
$pageCount = $pdf->setSourceFile($uri);
$pageId = $pdf->importPage(1);
$pdf->addPage();
$pdf->useImportedPage($pageId, 10, 10, 90);
The result is that all the text of the original report (and even the images) is gone and - guess what: the new page at the end of the document is also empty. The cells of the original document are drawed (the ones that have background are also colored) but there is no text (even if I try to select it so its not a problem of the text color).
Can someone help me with this problem?