<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — addLink => AddLink, link text parameter?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3745&amp;type=atom" />
	<updated>2013-01-14T16:00:53Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3745</id>
		<entry>
			<title type="html"><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15058#p15058" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-14T16:00:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15058#p15058</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15055#p15055" />
			<content type="html"><![CDATA[<p>Foxit reader!</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-14T15:08:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15055#p15055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15051#p15051" />
			<content type="html"><![CDATA[<p>Which PDF reader?</p><p>Adobe Acrobat / SumatraPDF Readers work.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-14T13:55:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15051#p15051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15046#p15046" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-14T12:59:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15046#p15046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15036#p15036" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-14T10:48:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15036#p15036</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: addLink => AddLink, link text parameter?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15035#p15035" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-14T10:28:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15035#p15035</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[addLink => AddLink, link text parameter?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15034#p15034" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-14T09:51:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15034#p15034</id>
		</entry>
</feed>
