From b009b7d368cb376788ba550784d21285cfbeded2 Mon Sep 17 00:00:00 2001 From: fossee-dell Date: Wed, 9 Aug 2017 14:55:43 +0530 Subject: Created proposal form --- pdf/fpdf/doc/aliasnbpages.htm | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 pdf/fpdf/doc/aliasnbpages.htm (limited to 'pdf/fpdf/doc/aliasnbpages.htm') diff --git a/pdf/fpdf/doc/aliasnbpages.htm b/pdf/fpdf/doc/aliasnbpages.htm new file mode 100755 index 0000000..53fdf68 --- /dev/null +++ b/pdf/fpdf/doc/aliasnbpages.htm @@ -0,0 +1,45 @@ + + +
+ +AliasNbPages([string alias])
+alias
{nb}
.
+class PDF extends FPDF
+{
+function Footer()
+{
+ // Go to 1.5 cm from bottom
+ $this->SetY(-15);
+ // Select Arial italic 8
+ $this->SetFont('Arial','I',8);
+ // Print current and total page numbers
+ $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
+}
+}
+
+$pdf = new PDF();
+$pdf->AliasNbPages();
+