<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Image as a template?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3417&amp;type=atom" />
	<updated>2013-10-21T12:10:04Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3417</id>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18172#p18172" />
			<content type="html"><![CDATA[<p>If you want to use pdf template you have to add it to reporting/forms, and file content will be used as report background. But I guess most of the fields on your invoice template has different coordinates than those printed in standard FA invoice report. Then you have to copy Header2.php file to &#039;reporting/forms/back.php&#039; and change the file content in such a way that invoice fields are printed in proper positions on your blueprint.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-10-21T12:10:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18172#p18172</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18100#p18100" />
			<content type="html"><![CDATA[<p>Thanks apmuthu for updating the wiki.</p><p>What is not clear is that apart from the PDF file that I placed in <strong>reporting/forms</strong> do I have to create another headerX.inc file with code to add my PDF file?</p><p>Would I be asking too much if you could add some simple code example in the wiki?</p><p>Thanks in advance<br />Carmelo</p>]]></content>
			<author>
				<name><![CDATA[carmelr]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=13862</uri>
			</author>
			<updated>2013-10-12T10:04:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18100#p18100</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18082#p18082" />
			<content type="html"><![CDATA[<p>I have updated the <a href="https://frontaccounting.com/fawiki/index.php?n=Devel.ReportWatermarking">Wiki</a> on this score.</p><p>Search for<br /></p><div class="codebox"><pre><code>$rep-&gt;SetHeaderType(&#039;Header2&#039;);</code></pre></div><p>in some of the <strong>reporting/*.php</strong> files and you will see how and where to include the function name.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-10-11T02:13:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18082#p18082</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18081#p18081" />
			<content type="html"><![CDATA[<p>I am trying to follow these instructions as I would like to add a pdf file as a template for the invoice.<br />After creating the pdf file ( I called it back.pdf) I placed it in fa/reporting/forms folder.</p><p>What I don&#039;t understand is exactly where to call SetHeaderType() and what would the correct syntax be for the above file.</p><p>Thanks in advance<br />Carmelo</p>]]></content>
			<author>
				<name><![CDATA[carmelr]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=13862</uri>
			</author>
			<updated>2013-10-10T20:52:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18081#p18081</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13717#p13717" />
			<content type="html"><![CDATA[<p>Thank you for your replies, Janusz and Apmuthu. Great help <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[danubi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=15905</uri>
			</author>
			<updated>2012-10-09T04:27:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13717#p13717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13711#p13711" />
			<content type="html"><![CDATA[<p>Thank you apmuthu <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" />.<br />@danubi,<br />Look into&nbsp; reporting/includes/header2.inc - this is typical template file for document layout. <br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2012-10-08T21:01:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13711#p13711</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13699#p13699" />
			<content type="html"><![CDATA[<p><a href="https://frontaccounting.com/fawiki/index.php?n=Devel.ReportWatermarking"><strong>Wiki</strong></a>ed it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-10-08T14:24:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13699#p13699</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13690#p13690" />
			<content type="html"><![CDATA[<p>Thank you for the reply, Janusz.&nbsp; I&#039;ve already got how to make it work. yay! <br />One more question though, is there a sample *.php file that may serve as a guide for creating those additional constant elements that you mentioned? If I&#039;m not mistaken, there is no such file existing yet in the default installation. I&#039;ve already got the PDF template part but&nbsp; the extra info might be helpful.</p><p>Again, thank you very much. <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[danubi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=15905</uri>
			</author>
			<updated>2012-10-08T08:44:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13690#p13690</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13683#p13683" />
			<content type="html"><![CDATA[<p>Yes, you can use any pdf file as background image for pdf report:<br />. put the pdf template file in reporting/forms folder;<br />. after creating FrontReport object call SetHeaderType() method passing basename of the template file;<br />. if you want to add any additional constant elements printed on every page (like titles, additional graphics) you can create *.php file with the same base name in the reporting/forms folder, and put any needed code here.</p><p>The pages in template file are used in cycle, so if there is only one page in template file - this page will be used for every page of report generated, if your template has 3 pages and the generated report has 4 - the last page of report will use page 1 as background again. <br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2012-10-08T07:49:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13683#p13683</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Image as a template?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13682#p13682" />
			<content type="html"><![CDATA[<p>Hi! I downloaded FrontAccounting and it seems like a good software. I&#039;m kinda playing around with it this past few days but there are areas where I get confused. I&#039;m just a newbie programmer, by the way.</p><p>Well, I just wanna ask. Is it possible to make an image or a PDF page as background or template for the forms?<br />You see, I think there are times when businesses require to pass some forms/reports which have formats that are already predefined such as government tax forms that can be downloaded from the internet, etc. So, I think it would be great if somehow I can use these forms as templates or backgrounds and just worry about filling up the forms.</p><p>I hope for your help. Thanks a lot guys and to the FA team! <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[danubi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=15905</uri>
			</author>
			<updated>2012-10-08T05:30:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13682#p13682</id>
		</entry>
</feed>
