From 87eb26bc3f01e98c948205eca6ff302903cc5b3e Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 9 Feb 2021 12:33:49 +0530 Subject: Add certificate forms --- 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 + + + +

AliasNbPages

+AliasNbPages([string alias]) +

Description

+Defines an alias for the total number of pages. It will be substituted as the document is +closed. +

Parameters

+
+
alias
+
+The alias. Default value: {nb}. +
+
+

Example

+
+
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();
+
+

See also

+PageNo(), +Footer(). +
+
Index
+ + -- cgit