<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5541&amp;type=atom" />
	<updated>2015-07-03T22:54:45Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5541</id>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23805#p23805" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-07-03T22:54:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23805#p23805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23792#p23792" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mark0300]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20216</uri>
			</author>
			<updated>2015-07-03T08:03:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23792#p23792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22487#p22487" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-11T13:47:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22487#p22487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22485#p22485" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-11T10:01:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22485#p22485</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22484#p22484" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-11T07:02:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22484#p22484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22482#p22482" />
			<content type="html"><![CDATA[<p>thanks mate!</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2015-02-11T06:41:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22482#p22482</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22481#p22481" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-11T06:28:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22481#p22481</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22480#p22480" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2015-02-10T22:17:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22480#p22480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22478#p22478" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-10T19:33:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22478#p22478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22477#p22477" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2015-02-10T19:06:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22477#p22477</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22476#p22476" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-10T18:46:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22476#p22476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22457#p22457" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17873</uri>
			</author>
			<updated>2015-02-09T11:01:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22457#p22457</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22456#p22456" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2015-02-09T10:55:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22456#p22456</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Purpose of setSourceFile in reporting/forms - Header2.pdf, Header2.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22454#p22454" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-09T10:34:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22454#p22454</id>
		</entry>
</feed>
