As a quick patch, I put a modified pdfprint.php on the SVN, so it should work better now with newer TCPDF
http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/print/pdfprint.php?format=txt armin On 13/11/2008 21:58, Armin Burger wrote: > For the actual dev version I replaced the odler TCPDF with a newer > version (something 3.x). It worked, I just noticed some offset of the > text towards the legend icons in the printed legend. I haven't tried to > identify why. Maybe it's just a small adjustment necessary. So you could > use a newer version and try your luck. > > AFAIR it was necessary to modify 1 or 2 entries in the config for TCPDF > to work without absolute paths. Just compare the original and my > modified one. > > Armin > > On 13/11/2008 11:18, [EMAIL PROTECTED] wrote: >> I have tried using the newest TCPDF version instead of p.mapper one and it >> works! >> >> Now, do I have to include this new TCPDF version in p.mapper? Can I do it >> at all? Will p.mapper support this and which changes have to be done? >> >> regards, dejan >> >> [EMAIL PROTECTED] wrote on 13.11.2008 11:02:14: >> >>> 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 >> ------------------------------------------------------------------------- >> 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 >> > > > ------------------------------------------------------------------------- > 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 > ------------------------------------------------------------------------- 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