<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Add stamp or watermark to reports on the fly – ad hoc.]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8143&amp;type=atom" />
	<updated>2020-01-18T00:12:35Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8143</id>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36844#p36844" />
			<content type="html"><![CDATA[<p>Use <a href="https://frontaccounting.com/punbb/viewtopic.php?id=8168">this</a> version and you can write what you want on what document you want</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2020-01-18T00:12:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36844#p36844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36842#p36842" />
			<content type="html"><![CDATA[<p>The way to do is listed in this post and it is upto the ingenuity of the deployer to do it as they deem fit.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-01-17T13:39:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36842#p36842</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36839#p36839" />
			<content type="html"><![CDATA[<p>This is an excellent feature!&nbsp; However, could we also add an automatic watermark so that fully paid invoices would be stamped PAID across the top?</p>]]></content>
			<author>
				<name><![CDATA[trentdavis]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1335</uri>
			</author>
			<updated>2020-01-17T10:56:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36839#p36839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34907#p34907" />
			<content type="html"><![CDATA[<p>@apmuthu, in <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=22487#p22487">this post</a> you have shown how header.php &amp; header2.php can be used as alternatives to the .pdf versions @Janusz mentions above.</p><p>So a suggested alternative could be:-</p><p>create file /reporting/forms/header.php with function Draw_watermark from above (header2.php as well)</p><p>create popup window on F2</p><p>enter watermark text and colour (The other variables could be included as well) parse to header.php</p><p>close popup, choose rest of report options and process report</p><p><strong>Would this work?</strong></p><p>If it does, then <strong>I think</strong> the only changes to existing core would be to enable the popup ($popup_editors array, etc.) and additional files header.php, header2.php (does header3.php also work?) and the popup window file.</p><p>Also the watermark could be used on all reports(including report exts) as and when required.</p><p>Thoughts please</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-05-08T19:17:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34907#p34907</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34903#p34903" />
			<content type="html"><![CDATA[<p>@janusz: any improvements to the core with dynamic setting of watermark attributes?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-05-08T02:45:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34903#p34903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34902#p34902" />
			<content type="html"><![CDATA[<p>Would it be better to call the function Draw_watermark within the 3 header functions?</p><p>If this is possible; I think it will write the watermark first, then the report text would overwrite and therefore still be legible: and then the two setAlpha lines can be removed from the function. (Light/contrasting colours would have to be selected)<br />Also possibly the setX &amp; Y could be removed: their settings would be moved to to the last two parameters of&nbsp; MultiCell. (As it is using these parameters moves the watermark 3/4 of the way across the page; cutting off some of the text)</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-05-07T19:55:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34902#p34902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34901#p34901" />
			<content type="html"><![CDATA[<p>I had not realised that TCPDF has its own html to rgb function:-</p><div class="codebox"><pre><code>File: \reporting\includes\tcpdf.php
5671:         function convertHTMLColorToDec($color=&quot;#000000&quot;) {</code></pre></div><p>I have changed the Draw_watermark function in post #1 above to reflect this and deleted the function html2rgb as it is no longer necessary.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-05-07T19:38:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34901#p34901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34900#p34900" />
			<content type="html"><![CDATA[<p>Yes, indeed, there is possibility to insert watermark, or even whole externally designed blueprint in documents generated in FA.<br />The blueprint have to be designed as PDF-1.4 file (other pdf formats may also be supported), and you will have to put it&nbsp; in the /reporting/forms folder.</p><p>Out of the box two blueprints are supported for two basic document layouts:<br />Header2.pdf - for reports 107-113, 209,210 and 409 <br />Header.pdf - for all other documents</p><p>If you want to test this feature, just put attached file in the forms folder and generate Sales Invoice. In real design some small changes in repxxx.php files can be necessary.</p><p>Of course this feature does not address directly the problem of ad-hoc per document&nbsp; watermarks, but is ready to use if e.g.&nbsp; you plan to hire artist to design your&nbsp; invoices <img src="https://frontaccounting.com/punbb/img/smilies/wink.png" width="15" height="15" alt="wink" />.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2019-05-07T14:22:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34900#p34900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34899#p34899" />
			<content type="html"><![CDATA[<p>Does this have anything to do with it&#039;s line 213 onwards:<br /></p><div class="codebox"><pre><code>function addText($xb,$yb,$size,$txt)//,$angle=0,$wordSpaceAdjust=0)</code></pre></div><p>Line 4478 of tcpdf.php has watermark as part of unfinished coding:<br /></p><div class="codebox"><pre><code>case &#039;watermark&#039;: {</code></pre></div><p><a href="https://tcpdf.org/examples/example_051/">Image as background in TCPDF</a></p><p><a href="https://ourcodeworld.com/articles/read/596/how-to-add-a-watermark-on-a-pdf-using-tcpdf">Add Watermark using TCPDF</a></p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-05-07T13:58:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34899#p34899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34895#p34895" />
			<content type="html"><![CDATA[<p>Janusz had already made an option for watermark and header includes in the fpdf class inside <strong>reporting/includes/class.pdf.inc</strong>.</p><p>It was a long time ago, but never documented.</p><p>I will try to contact him to explain.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2019-05-07T09:29:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34895#p34895</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34894#p34894" />
			<content type="html"><![CDATA[<p>@joe: want to add it into the core?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-05-07T07:34:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34894#p34894</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34892#p34892" />
			<content type="html"><![CDATA[<p>@boxygen, Customer Transaction Inquiry does not give any of the report options, its not possible to email the report or add a payment link from there either.<br />Adding option to fix watermark in company options defeats the object of adding a watermark on the fly on an ad hoc basis.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-05-07T02:52:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34892#p34892</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34891#p34891" />
			<content type="html"><![CDATA[<p>Hmmm. I was trying from Customer Transaction Inquiry. So there shall be an option to Fix the Water Mark in Company Preferences so that even from Customer Transaction Inquiry the WaterMark appears.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-05-07T02:36:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34891#p34891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34890#p34890" />
			<content type="html"><![CDATA[<p>@boxygen, ????? Did you write what text you wanted? Choose the text colour?</p><p>Doing <a href="https://imgur.com/BZN26na">this</a></p><p>Gives me <a href="https://imgur.com/ZleyjT5">this</a></p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-05-07T02:30:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34890#p34890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34889#p34889" />
			<content type="html"><![CDATA[<p>Can&#039;t find any watermark in <a href="http://prnt.sc/nlc089">this</a> report</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-05-07T01:48:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34889#p34889</id>
		</entry>
</feed>
