<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Item Description Wrapping Problem on PDF Invoice]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1168&amp;type=atom" />
	<updated>2010-03-10T19:03:44Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1168</id>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Wrapping Problem on PDF Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5219#p5219" />
			<content type="html"><![CDATA[<p>Thank You so much Joe.</p><p>That is exactly what I needed no more having to go into the MYSql and add spaces to make everything look good.</p>]]></content>
			<author>
				<name><![CDATA[oneit]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=428</uri>
			</author>
			<updated>2010-03-10T19:03:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5219#p5219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Wrapping Problem on PDF Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5145#p5145" />
			<content type="html"><![CDATA[<p>I guess you encountered a bug. A default parameter ($spacereak) was missing in the routine. The default parameters were changed a while ago, and this side-effect appeared. Fixed in CVS main. You can also download the file /reporting/includes/pdf_report.inc here:</p><br /><br /><p>You can change the TextColLines function back to what it was before. Now it will not stretch now.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-03-05T23:23:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5145#p5145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Wrapping Problem on PDF Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5143#p5143" />
			<content type="html"><![CDATA[<p>Well that fixed my other problem i was having where the last line of text of the wrapped description would be stretched out and the other lines had smaller font.</p><p>But it still cuts words in half for instance this is one of my descriptions:</p><p>Connected to second computer and w<br />aited for data to copy over. Put HDD bac<br />k into server and packaged up for the cou<br />rier.</p><p>Why cant it be made to look like this:</p><p>Connected to second computer and <br />waited for data to copy over. Put HDD <br />back into server and packaged up for <br />the courier.</p><p>It just seems to ignore the spaces and just chops the line at 50 characters.<br />I&#039;ve been looking and found a php function that can wrap lines of text at the last space so can this be changed in FrontAccounting.</p>]]></content>
			<author>
				<name><![CDATA[oneit]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=428</uri>
			</author>
			<updated>2010-03-05T20:01:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5143#p5143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Wrapping Problem on PDF Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5141#p5141" />
			<content type="html"><![CDATA[<p>For Sales invoice, /reporting/rep107.php. Line 131, you se a line:<br /></p><div class="codebox"><pre><code>$rep-&gt;TextColLines(1, 2, $myrow2[&#039;StockDescription&#039;], -2);</code></pre></div><p>This function wraps the lines between column 1 and 2 (0 based). If the description part can not fit, it will scale some of the text.<br />You can try to use<br /></p><div class="codebox"><pre><code>$rep-&gt;TextColLines(1, 2, $myrow2[&#039;StockDescription&#039;], -2, 0, 0, 0, null, 0);</code></pre></div><p>instead and see if it helps. It will not scale the text.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-03-05T10:44:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5141#p5141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Item Description Wrapping Problem on PDF Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5139#p5139" />
			<content type="html"><![CDATA[<p>I am having a problem with long item descriptions not wrapping whole words.<br />For example it will just put 50 characters per line then chop words in half and put them on the next line.<br />I can&#039;t seem to find the php function which is causing this and how can it be fixed.<br />I use the item description to enter in what I did for the labour portition of my job.</p>]]></content>
			<author>
				<name><![CDATA[oneit]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=428</uri>
			</author>
			<updated>2010-03-05T05:57:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5139#p5139</id>
		</entry>
</feed>
