<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — addLink => AddLink, link text parameter?]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3745</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3745&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in addLink => AddLink, link text parameter?.]]></description>
		<lastBuildDate>Mon, 14 Jan 2013 16:00:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15058#p15058</link>
			<description><![CDATA[<p>It works with latest Foxit Reader v5.4.4 on WinXP SP3. See <a href="http://www.apmuthu.com/bugfixes/Foxit_FA_PDF_Works.zip">screenshots</a>.</p><p>In Foxit Reader:<br />Edit -&gt; Preferences -&gt; Trust Manager -&gt; Enable Safe Reading Mode -&gt; Uncheck</p><p>All recent versions of PDF Readers disallow Web access by default. We need to enable it when we are sure.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 16:00:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15058#p15058</guid>
		</item>
		<item>
			<title><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15055#p15055</link>
			<description><![CDATA[<p>Foxit reader!</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 14 Jan 2013 15:08:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15055#p15055</guid>
		</item>
		<item>
			<title><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15051#p15051</link>
			<description><![CDATA[<p>Which PDF reader?</p><p>Adobe Acrobat / SumatraPDF Readers work.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 13:55:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15051#p15051</guid>
		</item>
		<item>
			<title><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15046#p15046</link>
			<description><![CDATA[<p>The link does not work from the pdf-reader.</p><p>The full link before (the ugly one if you like) worked like it should.<br />And for those who have a printed copy, they can just enter the link as is in the browser and they can pay it this way too.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 14 Jan 2013 12:59:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15046#p15046</guid>
		</item>
		<item>
			<title><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15036#p15036</link>
			<description><![CDATA[<p>Fixed this issue natively using TCPDF class base methods itself. Fully backwards compatible from TCPDF induction into FA onwards.</p><p>Patch for <strong>reporting/includes/header2.inc</strong> attached.<br />This patch is for current Mercurial Build 3135.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 10:48:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15036#p15036</guid>
		</item>
		<item>
			<title><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15035#p15035</link>
			<description><![CDATA[<p>Well, frankly speaking, I am not sure. It is several years since this link to paypal was added. And of course it is only good when viewing the document in the pdf reader.</p><p>apmuthu, you are mostly on your own here. Please test it and see.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 14 Jan 2013 10:28:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15035#p15035</guid>
		</item>
		<item>
			<title><![CDATA[addLink => AddLink, link text parameter?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15034#p15034</link>
			<description><![CDATA[<p>The <strong>function AddLink</strong> is defined in <strong>class TCPDF</strong> in line 2722 of <strong>reporting/includes/tcpdf.php</strong>. </p><p>This <strong>class TCPDF</strong> extended by <strong>class FPDF</strong> in <strong>reporting/includes/fpdi/fpdi2tcpdf_bridge.php</strong> . </p><p>The <strong>class FPDF</strong> is further extended by <strong>class FPDF_TPL</strong> in <strong>reporting/ncludes/fpdi/fpdf_tpl.php</strong> where the error override <strong>function AddLink</strong> is defined in Line 306 to redirect to it&#039;s namesake in the original grandparent class TCPDF.</p><p><strong>FPDF_TPL</strong> is now extended by <strong>class FPDI</strong> in <strong>reporting/includes/fpdi/fpdi.php</strong></p><p>There is no reference to the <strong>function addLink()</strong> in any of these classes (<strong>note case</strong>). The <strong>function addLink</strong> is used twice in <strong>reporting/includes/header2.inc</strong> :</p><p>Line 116:<br /></p><div class="codebox"><pre><code>$this-&gt;addLink($url, $c2col, $this-&gt;row, $mcol, $this-&gt;row + $this-&gt;lineHeight);</code></pre></div><p>Line 202:&nbsp; &nbsp; <br /></p><div class="codebox"><pre><code>$this-&gt;addLink($txt, $ccol, $this-&gt;row, $this-&gt;pageWidth - $this-&gt;rightMargin, $this-&gt;row + $this-&gt;lineHeight);</code></pre></div><p>If we assume that it is a typo and correct it to <strong>AddLink</strong>, then the function description states that it is an<strong> internal link</strong> within the document only but our usage in FA is for external links which require the <strong>SetLink</strong> method of TCPDF.</p><p>Commenting out the said lines (tested commenting out line 202) results in no loss in functionality - the link is clickable in the PDF. This means that when any URL is sent to the TextWrap method that preceeded the addLink, it will intelligently be rendered clickable.</p><p>Which parameter is then to be used in setting the display text for the link if it needs to be other than the url?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 09:51:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15034#p15034</guid>
		</item>
	</channel>
</rss>
