<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Image as a template?]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3417</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3417&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Image as a template?.]]></description>
		<lastBuildDate>Mon, 21 Oct 2013 12:10:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18172#p18172</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 21 Oct 2013 12:10:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18172#p18172</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18100#p18100</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (carmelr)]]></author>
			<pubDate>Sat, 12 Oct 2013 10:04:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18100#p18100</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18082#p18082</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 11 Oct 2013 02:13:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18082#p18082</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18081#p18081</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (carmelr)]]></author>
			<pubDate>Thu, 10 Oct 2013 20:52:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18081#p18081</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13717#p13717</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (danubi)]]></author>
			<pubDate>Tue, 09 Oct 2012 04:27:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13717#p13717</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13711#p13711</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 08 Oct 2012 21:01:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13711#p13711</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13699#p13699</link>
			<description><![CDATA[<p><a href="https://frontaccounting.com/fawiki/index.php?n=Devel.ReportWatermarking"><strong>Wiki</strong></a>ed it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 08 Oct 2012 14:24:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13699#p13699</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13690#p13690</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (danubi)]]></author>
			<pubDate>Mon, 08 Oct 2012 08:44:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13690#p13690</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13683#p13683</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 08 Oct 2012 07:49:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13683#p13683</guid>
		</item>
		<item>
			<title><![CDATA[Image as a template?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13682#p13682</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (danubi)]]></author>
			<pubDate>Mon, 08 Oct 2012 05:30:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13682#p13682</guid>
		</item>
	</channel>
</rss>
