summaryrefslogtreecommitdiff
path: root/pdf/fpdf/doc/aliasnbpages.htm
diff options
context:
space:
mode:
authorSashi202021-08-10 16:25:28 +0530
committerGitHub2021-08-10 16:25:28 +0530
commite549abedacf81fecdaf7fe5c2dff95b4fb437cae (patch)
treee99fa42cd83b454c53501a9539970460c27bd156 /pdf/fpdf/doc/aliasnbpages.htm
parent21cfc2425884841b69969a6cddccd5201f053808 (diff)
parent2ea5fde67291c53e48cdd081d4e572defcf6a4cf (diff)
downloadesim_lab_migration-e549abedacf81fecdaf7fe5c2dff95b4fb437cae.tar.gz
esim_lab_migration-e549abedacf81fecdaf7fe5c2dff95b4fb437cae.tar.bz2
esim_lab_migration-e549abedacf81fecdaf7fe5c2dff95b4fb437cae.zip
Merge pull request #1 from Saketh1499/developement
Certificate generation
Diffstat (limited to 'pdf/fpdf/doc/aliasnbpages.htm')
-rwxr-xr-xpdf/fpdf/doc/aliasnbpages.htm45
1 files changed, 45 insertions, 0 deletions
diff --git a/pdf/fpdf/doc/aliasnbpages.htm b/pdf/fpdf/doc/aliasnbpages.htm
new file mode 100755
index 0000000..26e02c5
--- /dev/null
+++ b/pdf/fpdf/doc/aliasnbpages.htm
@@ -0,0 +1,45 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>AliasNbPages</title>
+<link type="text/css" rel="stylesheet" href="../fpdf.css">
+</head>
+<body>
+<h1>AliasNbPages</h1>
+<code>AliasNbPages([<b>string</b> alias])</code>
+<h2>Description</h2>
+Defines an alias for the total number of pages. It will be substituted as the document is
+closed.
+<h2>Parameters</h2>
+<dl class="param">
+<dt><code>alias</code></dt>
+<dd>
+The alias. Default value: <code>{nb}</code>.
+</dd>
+</dl>
+<h2>Example</h2>
+<div class="doc-source">
+<pre><code>class PDF extends FPDF
+{
+function Footer()
+{
+ // Go to 1.5 cm from bottom
+ $this-&gt;SetY(-15);
+ // Select Arial italic 8
+ $this-&gt;SetFont('Arial','I',8);
+ // Print current and total page numbers
+ $this-&gt;Cell(0,10,'Page '.$this-&gt;PageNo().'/{nb}',0,0,'C');
+}
+}
+
+$pdf = new PDF();
+$pdf-&gt;AliasNbPages();</code></pre>
+</div>
+<h2>See also</h2>
+<a href="pageno.htm">PageNo</a>,
+<a href="footer.htm">Footer</a>
+<hr style="margin-top:1.5em">
+<div style="text-align:center"><a href="index.htm">Index</a></div>
+</body>
+</html>