<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Page numbering on sales invoice PDF's]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4351&amp;type=atom" />
	<updated>2017-01-01T17:51:14Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4351</id>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27306#p27306" />
			<content type="html"><![CDATA[<p>Either you use your own page counter variable in the report file and increment it just before each AddPage() (or FA&#039;s NewPage()) or use TCPDF&#039;s (<em>reporting/includes/tcpdf.php</em>) page variables (<strong>$page</strong> is the class property for the current page number, <strong>$pages</strong> is an array of the pdf pages) that the FA reporting engine uses. </p><p>Whilst <strong>$this-&gt;pageNumber</strong> is correct, the <em>$this-&gt;totalPageNumber</em> is not used in FA.</p><p>As the pdf generation progresses, the max number of pages in the document till then is <strong>$this-&gt;getAliasNbPages()</strong>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-01-01T17:51:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27306#p27306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27290#p27290" />
			<content type="html"><![CDATA[<p>Hi Guys,</p><p>How do we display page number like &quot;page 1 of 3&quot;?</p><p>What&#039;s name of the function to be called? Is the following syntax correct?</p><p>$this-&gt;Text($mcol + 180, _(&quot;Page&quot;) . &#039; &#039; . $this-&gt;pageNumber . _(&quot; of &quot;) . $this-&gt;totalPageNumber);</p><p>Thank you for your time.<br />Eric</p>]]></content>
			<author>
				<name><![CDATA[ericta]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=5299</uri>
			</author>
			<updated>2016-12-30T16:59:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27290#p27290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22596#p22596" />
			<content type="html"><![CDATA[<p>Just remove the page number for now or keep resetting the page number in the report when a new invoice is generated.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-17T13:23:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22596#p22596</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22588#p22588" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>erwindebruin wrote:</cite><blockquote><p>if i select multiple invoices for printing (like invoice no 1 to 1000, all single page invoices) the PDF which is generated also includes pagenumbering. By example invoice no 2 gets pagenumber 2. I think this is incorrect and the numbering as discussed in this thread should restart on each invoice again and not on the pages when bulk printing invoices.</p></blockquote></div><p>Any solution to this situation? Appreciate anyone&#039;s help</p>]]></content>
			<author>
				<name><![CDATA[sirka]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19866</uri>
			</author>
			<updated>2015-02-17T09:20:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22588#p22588</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18802#p18802" />
			<content type="html"><![CDATA[<p>if i select multiple invoices for printing (like invoice no 1 to 1000, all single page invoices) the PDF which is generated also includes pagenumbering. By example invoice no 2 gets pagenumber 2. I think this is incorrect and the numbering as discussed in this thread should restart on each invoice again and not on the pages when bulk printing invoices.</p>]]></content>
			<author>
				<name><![CDATA[erwindebruin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=4582</uri>
			</author>
			<updated>2013-12-25T09:43:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18802#p18802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17652#p17652" />
			<content type="html"><![CDATA[<p>Yes that would be acceptable.</p>]]></content>
			<author>
				<name><![CDATA[andrew1136]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9306</uri>
			</author>
			<updated>2013-09-05T22:10:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17652#p17652</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17649#p17649" />
			<content type="html"><![CDATA[<p>If page numbering starting from second page is acceptable for you (i.e. without page number on first page), we can switch the numbering on for all documents since next minor release. <br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-09-05T21:32:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17649#p17649</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17641#p17641" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>andrew1136 wrote:</cite><blockquote><p>Hi to Elax, the TextCart extension is working perfectly also.</p></blockquote></div><p>Great :-) !</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2013-09-05T10:49:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17641#p17641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17625#p17625" />
			<content type="html"><![CDATA[<p>Thanks Janusz, that works perfectly.</p><p>Date&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 31.08.2013<br />Invoice No.&nbsp; &nbsp; 37754&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Page 6</p><br /><p>Hi to Elax, the TextCart extension is working perfectly also.</p><p>Cheers<br />Andrew</p>]]></content>
			<author>
				<name><![CDATA[andrew1136]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9306</uri>
			</author>
			<updated>2013-09-04T22:24:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17625#p17625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17612#p17612" />
			<content type="html"><![CDATA[<p><a href="https://frontaccounting.com/fawiki/index.php?n=Help.ReportsAndAnalysis">Wiki</a>-ed it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-09-04T13:17:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17612#p17612</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17603#p17603" />
			<content type="html"><![CDATA[<p>Brilliant, maybe that should be an option in the config file ;-)</p><p>/Elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2013-09-04T10:13:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17603#p17603</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17593#p17593" />
			<content type="html"><![CDATA[<p>You can comment out line 142 in reporting/includes/header2.inc, then you will have page numbering on all&nbsp; reports.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-09-04T05:37:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17593#p17593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Page numbering on sales invoice PDF's]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17591#p17591" />
			<content type="html"><![CDATA[<p>Is it possible to add page numbering to sales invoices PDF&#039;s ? Many of my invoices exptend to 6 pages and I then need to process them using Adobe Acrobat to add page numbers &quot;1 of n&quot; (Bates numbering), if the FA PDF generator could add page numbers automatically it would simplify this process for me.</p>]]></content>
			<author>
				<name><![CDATA[andrew1136]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9306</uri>
			</author>
			<updated>2013-09-04T03:45:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17591#p17591</id>
		</entry>
</feed>
