Hi, The recent version of FPDI supports TCPDF. So I have tried the following, just for the test:
- downloaded FPDI-1.2.1 and FPDF TPL-1.1.2 - put everything to an example web accessible folder, together with all the content from pmapper/incphp/print folder - made a test php file like this: <?php require_once('tcpdf.php'); require_once('fpdi.php'); // initiate FPDI $pdf =& new FPDI(); // add a page $pdf->AddPage(); // set the sourcefile $pdf->setSourceFile('PDFDocument.pdf'); // import page 1 $tplIdx = $pdf->importPage(1); // use the imported page and place it at point 10,10 with a width of 100 mm $pdf->useTemplate($tplIdx, 10, 10, 100); // now write some text above the imported page $pdf->SetFont('arial'); $pdf->SetTextColor(255,0,0); $pdf->SetXY(25, 25); $pdf->Write(0, "This is just a simple text"); $pdf->Output('newpdf.pdf', 'D'); But when I try to run it, I get "FPDF error: Cannot access protected property FPDI:$fontlist / Undefined property: FPDI::$fontlist" error Do I have to try with another (newer) TCPDF version? Do I have to modify something in p.mapper TCPDF version? thanks very much regards, dejan ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users