From 20446770a141a227be2bdf1d126d288aaad2d634 Mon Sep 17 00:00:00 2001
From: Brian Manning <bdmanning@ucsd.edu>
Date: Wed, 20 Apr 2016 13:04:40 -0700
Subject: [PATCH] fpdf_demo: added comments clarifying page size

---
 fpdf_demo | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/fpdf_demo b/fpdf_demo
index 9d4cde4..534cac4 100755
--- a/fpdf_demo
+++ b/fpdf_demo
@@ -3,7 +3,7 @@
 <?php
 /**
  * FILENAME:
- * fpdfdemo
+ * fpdf_demo
  *
  * DESCRIPTION:
  * Demonstration of the FPDF PHP Library for generating PDF files
@@ -50,13 +50,15 @@ $pdf->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();
-- 
1.9.1