<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Add stamp or watermark to reports on the fly – ad hoc.]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8143</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8143&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Add stamp or watermark to reports on the fly – ad hoc..]]></description>
		<lastBuildDate>Sat, 18 Jan 2020 00:12:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36844#p36844</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 18 Jan 2020 00:12:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36844#p36844</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36842#p36842</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 17 Jan 2020 13:39:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36842#p36842</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36839#p36839</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (trentdavis)]]></author>
			<pubDate>Fri, 17 Jan 2020 10:56:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36839#p36839</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34907#p34907</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Wed, 08 May 2019 19:17:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34907#p34907</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34903#p34903</link>
			<description><![CDATA[<p>@janusz: any improvements to the core with dynamic setting of watermark attributes?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 08 May 2019 02:45:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34903#p34903</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34902#p34902</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Tue, 07 May 2019 19:55:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34902#p34902</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34901#p34901</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Tue, 07 May 2019 19:38:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34901#p34901</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34900#p34900</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Tue, 07 May 2019 14:22:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34900#p34900</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34899#p34899</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 07 May 2019 13:58:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34899#p34899</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34895#p34895</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 07 May 2019 09:29:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34895#p34895</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34894#p34894</link>
			<description><![CDATA[<p>@joe: want to add it into the core?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 07 May 2019 07:34:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34894#p34894</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34892#p34892</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Tue, 07 May 2019 02:52:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34892#p34892</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34891#p34891</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Tue, 07 May 2019 02:36:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34891#p34891</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34890#p34890</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Tue, 07 May 2019 02:30:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34890#p34890</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add stamp or watermark to reports on the fly – ad hoc.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34889#p34889</link>
			<description><![CDATA[<p>Can&#039;t find any watermark in <a href="http://prnt.sc/nlc089">this</a> report</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Tue, 07 May 2019 01:48:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34889#p34889</guid>
		</item>
	</channel>
</rss>
