diff --git a/fpdf_demo b/fpdf_demo index 9d4cde4..534cac4 100755 --- a/fpdf_demo +++ b/fpdf_demo @@ -3,7 +3,7 @@ Write(10, "Привет! Этот немного текста."); // load up the Site Summary Figure to go on page #2 $ssfPageCount = $pdf->setSourceFile(__DIR__ . '/site_summary_figure.pdf'); -print "Page count of site summary figure form is $ssfPageCount\n"; +//print "Page count of site summary figure form is $ssfPageCount\n"; // import the SSF page -$ssfTemplate= $pdf->importPage(1); -print "Page size of site summary figure PDF is: "; -$ssfSize = $pdf->getTemplateSize($ssfTemplate); -print "{$ssfSize['w']} x {$ssfSize['h']}\n"; +//$ssfTemplate= $pdf->importPage(1); +// NOTE the page sizes are in millimeters, as that's what we specified when +// the PDF document was first created (above) +//print "Page size of site summary figure PDF is: "; +//$ssfSize = $pdf->getTemplateSize($ssfTemplate); +//print "{$ssfSize['w']}mm x {$ssfSize['h']}mm\n"; // add the SSF file to the 2nd page $pdf->AddPage();