Adding a page with FPDF

From: Date: Wed, 18 Jun 2008 23:29:45 +0000
Subject: Adding a page with FPDF
Groups: php.general 
Request: Send a blank email to php-general+get-275548@lists.php.net to get a copy of this message
Anyone use FPDF? I'm trying to create a new document in memory, starting with a template document - I'm going to add some stuff to it. The template document might be any size and dimensions. Here is the code I'm using, and my problem is that the resulting document is always an 8.5x11 page. How do I get my new document to be the same dimensions as the template doc? $pdf= new fpdi(); $pagecount = $pdf->setSourceFile("templates/".$pdf_template_name); $tplidx = $pdf->ImportPage(1); $pdf->addPage('P'); $pdf->useTemplate($tplidx);

« previous php.general (#275548) next »