diff --git a/config/index.php b/config/index.php
index fcee4be..e067d75 100644
--- a/config/index.php
+++ b/config/index.php
@@ -8,6 +8,7 @@
echo "Project Age Categories
";
echo "Project Divisons
";
echo "Project Sub-Divisons
";
+ echo "Images (Fair Logo)
";
send_footer();
?>
diff --git a/lpdf.php b/lpdf.php
index ca18c49..c7ce688 100644
--- a/lpdf.php
+++ b/lpdf.php
@@ -6,6 +6,7 @@ class lpdf
var $page_header;
var $page_subheader;
var $pagenumber;
+ var $logoimage;
function loc($inch)
{
@@ -28,6 +29,9 @@ class lpdf
pdf_show_boxed($this->pdf,$this->page_subheader,$this->loc(0.75),$this->loc($this->yloc),$this->loc(7),$this->loc($height['subtitle']),"center",null);
$this->yloc-=$height['subtitle'];
+ //now place the logo image in the top-left-ish
+ pdf_place_image($this->pdf,$this->logoimage,$this->loc(0.75),$this->loc($this->yloc+.02),.20);
+
//header line
pdf_moveto($this->pdf,$this->loc(0.5),$this->loc($this->yloc));
pdf_lineto($this->pdf,$this->loc(8),$this->loc($this->yloc));
@@ -198,6 +202,7 @@ class lpdf
function output()
{
pdf_end_page($this->pdf);
+ pdf_close_image($this->pdf,$this->logoimage);
pdf_close($this->pdf);
$pdfdata=pdf_get_buffer($this->pdf);
header("Content-type: application/pdf");
@@ -206,7 +211,7 @@ class lpdf
echo $pdfdata;
}
- function lpdf($header,$subheader)
+ function lpdf($header,$subheader,$logo)
{
$this->pdf=pdf_new();
pdf_open_file($this->pdf,null);
@@ -219,6 +224,8 @@ class lpdf
$this->normalfont=pdf_findfont($this->pdf,"Times-Roman","host",0);
$this->headerfont=pdf_findfont($this->pdf,"Times-Bold","host",0);
+ $this->logoimage=pdf_open_image_file($this->pdf,"gif",$logo,"",0);
+
pdf_set_info($this->pdf,"Author","SFIAB");
pdf_set_info($this->pdf,"Creator","SFIAB");
pdf_set_info($this->pdf,"Title","SFIAB - $subheader");