<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5541</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5541&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php.]]></description>
		<lastBuildDate>Fri, 03 Jul 2015 22:54:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23805#p23805</link>
			<description><![CDATA[<p>File uploading is generally avoided as far as is possible. In FA, document uploads for various classes of vouchers are supported. Watermarking pdfs, if used will need to be on a per company basis in the current FA dispensation and hence no choice of pdf file is provided and the custom files hardcoded. Having such a facility to choose the background PDF will then necessitate choosing one each time in what is already a long form for report generation. Furthermore, the choice appears to be hardcoded in several reports and if reduced (if not already) to just one or two functions, it may be feasible.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 03 Jul 2015 22:54:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23805#p23805</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23792#p23792</link>
			<description><![CDATA[<p>Hi Joe/AP Muthu,</p><p>Is it possible to add a link on the screen (say Company Setup) and allow users to select the file (Header.pdf or Header2.pdf)&nbsp; and upload the files to the company/X/reporting/forms/ directory?&nbsp; &nbsp; &nbsp;We host FA in a server but we do not want the users to access to the FA directory.</p><p>If so, would you please advise the codes to add?</p><p>Thanks a lot.</p><p>Regards,<br />Mark</p>]]></description>
			<author><![CDATA[null@example.com (mark0300)]]></author>
			<pubDate>Fri, 03 Jul 2015 08:03:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23792#p23792</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22487#p22487</link>
			<description><![CDATA[<p>An example of <em>company/1/reporting/forms/<strong>Header2.php</strong></em> usage and it&#039;s effect is attached. The wiki has been updated as well.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 11 Feb 2015 13:47:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22487#p22487</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22485#p22485</link>
			<description><![CDATA[<p>The Template (eg., Header2) function is executed only at the very end of the New page method and the the <strong>company/#/reporting/Header2.php</strong> if present will provide overrides for properties not defined in it and in doctext.inc and header2.inc or in cases where pre-defined property values in them are not overridden (like <strong>$this-&gt;formData[&#039;br_name&#039;]</strong>).</p><p>Any variables (need to global them) and properties referred to in the header2.inc and doctext.inc files that are not part of the core can be provided in the <strong>Header2.php</strong> file and assigned in header2.inc and doctext.inc only if absent.</p><p>If the Header2.pdf / Header.pdf files have more than one page, then each one is used in succession for the report and the last one for the remaining pages of the report.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 11 Feb 2015 10:01:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22485#p22485</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22484#p22484</link>
			<description><![CDATA[<p>Wikied &quot;<strong><a href="https://frontaccounting.com/fawiki/index.php?n=Help.ReportsAndAnalysis">Watermarking and background / logo merging in reports</a></strong>&quot;. It now stands documented!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 11 Feb 2015 07:02:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22484#p22484</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22482#p22482</link>
			<description><![CDATA[<p>thanks mate!</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 11 Feb 2015 06:41:31 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22482#p22482</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22481#p22481</link>
			<description><![CDATA[<p>@joe: Thanks for the OpenWriter file. Will be useful in documenting this feature.</p><p>English translation of Swedish &quot;laboration&quot;: Laboratory / Experimental Work.</p><p>Anyone used the <strong>Header.php</strong> / <strong>Header2.php</strong> in the reporting/forms folder in the company/#/ folder?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 11 Feb 2015 06:28:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22481#p22481</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22480#p22480</link>
			<description><![CDATA[<p>Hello again,</p><p>Here is an OpenOffice Writer file, that can be used for laboration. Replace the logo with your own. Remember to not getting it too high. Click on the light gray rotated text, Change the text and maybe select Another color (mark the text and right mouse click and select Character...). </p><p>Finally Export to PDF (or print via doPdf print driver, see above) and name it header.pdf&nbsp; for normal reports or header2.pdf if you will use it for documents. The file should be in the /reporting/forms folder.</p><p>Remember that this background works best with Portrait reports. </p><p>If you end up with a fancy background, please share it with us by sending an OpenOffice Writer .odt file. Thanks in advance.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 10 Feb 2015 22:17:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22480#p22480</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22478#p22478</link>
			<description><![CDATA[<p>@joe: Thanks for the <a href="http://download.dopdf.com/download/setup/dopdf-full.exe">doPDF</a> tip. PDFCreator too generates small PDF files and is free but may try to install some nagware (optional) in the later versions.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 10 Feb 2015 19:33:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22478#p22478</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22477#p22477</link>
			<description><![CDATA[<p>You can also print to a pdf printer driver, doPdf instead af saveas. This will give you lesser&nbsp; Footprints. You save the pdf file when printing to pdf.</p><p>You can find a link to <a href="https://frontaccounting.com/wbt/pages/links.php">doPdf</a> here.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 10 Feb 2015 19:06:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22477#p22477</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22476#p22476</link>
			<description><![CDATA[<p>Uploaded the Watermark PDF file as <strong>company/1/reporting/includes/forms/Header2.pdf</strong> (case sensitive - must be same name as HeaderTmpl with pdf extension) and attached the sample invoice PDFs generated. </p><p>If the Watermark file is formatted as PDF v1.5 and above, then we get a &quot;<strong>Unexpected data in xref table</strong>&quot; <a href="http://www.vankouteren.eu/blog/2009/07/fpdf-error-unable-to-find-xref-table/">error</a>. <a href="http://www.setasign.com/products/fpdi-pdf-parser/details/?gclid=CP-rpPqN2MMCFVYWjgodMmoA6w">FPDI Commercial version</a> can read PDF v1.5 and higher.</p><p>We can convert such files to PDF v1.4 format using <a href="http://sf.net/projects/pdfcreator">PDFCreator</a> and then use it in FA without errors. PDFCreator is a virtual print driver to generate PDF files.</p><p><strong>MS Word 2007 =&gt; Page layout =&gt; Watermark =&gt; Custom Watermark =&gt; File =&gt; Save As =&gt; PDF or XPS</strong><br />yields a PDF v1.5 format that needs to be converted as above before using it in FA.</p><p>Please note that there is no option to turn it on or off and if the watermark file is present, then it will be used for all reports that use the header template.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 10 Feb 2015 18:46:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22476#p22476</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22457#p22457</link>
			<description><![CDATA[<p>setSourceFile() loads an existing pdf as a &quot;background&quot;, onto which all output is &quot;printed&quot;. I use it elsewhere for generating invoices, but here it&#039;s probably used to include a company letterhead.</p>]]></description>
			<author><![CDATA[null@example.com (tm)]]></author>
			<pubDate>Mon, 09 Feb 2015 11:01:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22457#p22457</guid>
		</item>
		<item>
			<title><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22456#p22456</link>
			<description><![CDATA[<p>You can either place a header.pdf or header2.pdf file here to be merged.<br />This feature hasn&#039;t really being documented.</p><p>You can place a pdf file here to be merged with the current report.</p><p>Usability could be to place a company logo on top of of the header.pdf.</p><p>Or a stamp underneath the existingg report, such as confidential data across the page in a vague color.</p><p>You can use a word processor, like MS Word or Open Office&nbsp; Writer to print to a pdf file with a printer driver like doPdf.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 09 Feb 2015 10:55:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22456#p22456</guid>
		</item>
		<item>
			<title><![CDATA[Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22454#p22454</link>
			<description><![CDATA[<p>What is the purpose of placing a Header2.pdf file in reporting/forms folder (possibly in the company folder)?</p><p>On New page creation in reports, the function setSourceFile() in <strong>reporting/includes/fpdi/fpdi.php</strong> is called and returns the number of pages in the above Header2.pdf file.</p><p>On New page creation in reports another possibility is to place a Header2.php file in reporting/forms folder (possibly in the company folder) as well - what does it do?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 09 Feb 2015 10:34:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22454#p22454</guid>
		</item>
	</channel>
</rss>
