<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/html2fpdf/patches/</link><description>Recent changes to patches</description><language>en</language><lastBuildDate>Tue, 10 Aug 2010 20:20:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/html2fpdf/patches/feed.rss" rel="self" type="application/rss+xml"></atom:link><item><title>Table display - fix center bug</title><link>https://sourceforge.net/p/html2fpdf/patches/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I noticed that tables are not centered correctly: they were moved slightly to the left.&lt;/p&gt;
&lt;p&gt;FIX:&lt;br /&gt;
html2fpdfd.php, function _tableWrite, line about 2822.&lt;br /&gt;
WERE:&lt;br /&gt;
$right = $this-&amp;gt;pgwidth - $this-&amp;gt;rMargin;&lt;br /&gt;
SHOULD BE:&lt;br /&gt;
$right = $this-&amp;gt;fw - $this-&amp;gt;rMargin;&lt;/p&gt;
&lt;p&gt;Because right margin has already been substracted from pgwidth, $right behaves as if it had double margin.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zlorf</dc:creator><pubDate>Tue, 10 Aug 2010 20:20:03 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neta03dad7007298e3dfa89185249c547c529f01642</guid></item><item><title>Enable/disable footer</title><link>https://sourceforge.net/p/html2fpdf/patches/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I added Footer enable/disable feature:&lt;/p&gt;
&lt;p&gt;Declare this variable.&lt;/p&gt;
&lt;p&gt;var $enablefooter=true; //! bool&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;Then modify Footer method and add SetFooterActive.&lt;/p&gt;
&lt;p&gt;//Page footer&lt;/p&gt;
&lt;p&gt;function Footer()&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt;
if ($this-&amp;gt;enablefooter) {&lt;/p&gt;
&lt;p&gt;//! @return void&lt;/p&gt;
&lt;p&gt;//! @desc The footer is printed in every page!&lt;/p&gt;
&lt;p&gt;//Position at 1.0 cm from bottom&lt;/p&gt;
&lt;p&gt;$this-&amp;gt;SetY(-10);&lt;/p&gt;
&lt;p&gt;//Copyright //especial para esta versão&lt;/p&gt;
&lt;p&gt;$this-&amp;gt;SetFont('Arial','B',9);&lt;/p&gt;
&lt;p&gt;$this-&amp;gt;SetTextColor(0);&lt;/p&gt;
&lt;p&gt;//Arial italic 9&lt;/p&gt;
&lt;p&gt;$this-&amp;gt;SetFont('Arial','I',9);&lt;/p&gt;
&lt;p&gt;//Page number&lt;/p&gt;
&lt;p&gt;$this-&amp;gt;Cell(0,10,$this-&amp;gt;PageNo().'/{nb}',0,0,'C');&lt;/p&gt;
&lt;p&gt;//Return Font to normal&lt;/p&gt;
&lt;p&gt;$this-&amp;gt;SetFont('Arial','',11);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;// Enable or disable footer printing&lt;br /&gt;
function SetFooterActive($enable) {&lt;br /&gt;
$this-&amp;gt;enablefooter=$enable;&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">manel zaera</dc:creator><pubDate>Fri, 25 Jan 2008 16:44:50 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net31ea1c11ee6ff4d4009de204ab33c35c4037598c</guid></item><item><title>Table row with only &amp;nbsp; not rendered</title><link>https://sourceforge.net/p/html2fpdf/patches/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Empty cells (&amp;amp;nbsp;, whitespace, etc.) were getting an height of '0', so a row of all '&amp;amp;nbsp;' characters would not be rendered.&lt;/p&gt;
&lt;p&gt;Fix:&lt;/p&gt;
&lt;p&gt;Add the following line:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
if ($linesneeded == 0) $linesneeded = 1;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/p&gt;
&lt;p&gt;After this (around line 2686 in _tableHeight function):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
$linesneeded = $this-&amp;gt;WordWrap($auxtext,$cw-2);// -2 == margin&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 31 Dec 2007 22:45:34 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net94f5f66a70ff3f1c68f57c7ce8dd83d7c6d5d1a1</guid></item><item><title>[patch] Table inline CSS support</title><link>https://sourceforge.net/p/html2fpdf/patches/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In File: html2pdf.php&lt;br /&gt;
Near Line: 621&lt;/p&gt;
&lt;p&gt;Add: if (isset($attr['STYLE'])) $this-&amp;gt;cell[$this-&amp;gt;row][$this-&amp;gt;col]['style'] = $attr['STYLE'];&lt;/p&gt;
&lt;p&gt;Description:&lt;br /&gt;
Inline CSS support for tables can be easily enabled by making the pharser read the style attribute.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DjDarkman</dc:creator><pubDate>Tue, 11 Sep 2007 23:50:33 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netdd37a97a530ecf9a8a5aa7a20623804ba6cb797e</guid></item><item><title>[patch] Support for Landscape orientation</title><link>https://sourceforge.net/p/html2fpdf/patches/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In file: html2pdf.php&lt;br /&gt;
Near line: 162&lt;/p&gt;
&lt;p&gt;Swap:   $this-&amp;gt;pgwidth = $this-&amp;gt;fw - $this-&amp;gt;lMargin - $this-&amp;gt;rMargin ;&lt;/p&gt;
&lt;p&gt;With:&lt;br /&gt;
if ($this-&amp;gt;DefOrientation == "P")&lt;br /&gt;
{&lt;br /&gt;
$this-&amp;gt;pgwidth = $this-&amp;gt;fw - $this-&amp;gt;lMargin - $this-&amp;gt;rMargin ;&lt;br /&gt;
}&lt;br /&gt;
else {&lt;br /&gt;
$tmp = $this-&amp;gt;fh;&lt;br /&gt;
$this-&amp;gt;fh = $this-&amp;gt;fw;&lt;br /&gt;
$this-&amp;gt;fw = $tmp;&lt;br /&gt;
$this-&amp;gt;pgwidth = $this-&amp;gt;fw - $this-&amp;gt;lMargin - $this-&amp;gt;rMargin ;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Description:&lt;br /&gt;
It is wrong to use the format height and format width because these to need to be swapped when we are *NOT* using portrait, altough my patch can fix this.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DjDarkman</dc:creator><pubDate>Tue, 11 Sep 2007 23:46:44 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netdd4996ce8b725ac3c735c8cdb337dc9a30426ede</guid></item><item><title>CSS border (-left,-right,-top,-bottom) + html header</title><link>https://sourceforge.net/p/html2fpdf/patches/14/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Adds support for CSS style border-left,-right,-top,-bottom borders, and some minor bugfixes on table handling. Also contains html header and footer support.&lt;/p&gt;
&lt;p&gt;NOTE: borders are NOT complete, you can only use 0 or 1 to specify the app. border (as html2fpdf can't handle border weight). So you can use:&lt;br /&gt;
&amp;lt;TABLE border=1&amp;gt;&lt;br /&gt;
&amp;lt;TR&amp;gt;&amp;lt;TD style='border-right:0;border-top:0px;'&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;TABLE border=0&amp;gt;&lt;br /&gt;
&amp;lt;TR&amp;gt;&amp;lt;TD style='border-bottom:1;'&amp;gt;&lt;/p&gt;
&lt;p&gt;Also note, that if table border used, and you want to disappear a border, you have to specify it on both cells:&lt;br /&gt;
&amp;lt;TABLE border=1&amp;gt;&lt;br /&gt;
&amp;lt;TR&amp;gt;&lt;br /&gt;
&amp;lt;TD style='border-right:0;'&amp;gt;no right border&amp;lt;/TD&amp;gt;&lt;br /&gt;
&amp;lt;TD style='border-left:0;'&amp;gt;no left border&amp;lt;/TD&amp;gt;&lt;br /&gt;
&amp;lt;/TR&amp;gt;&lt;br /&gt;
&amp;lt;/TABLE&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Turdus</dc:creator><pubDate>Wed, 30 May 2007 15:10:01 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neta8ef4dcb7556be92368e6332a20627bf01f997d4</guid></item><item><title>Adds HTML living header and footer support</title><link>https://sourceforge.net/p/html2fpdf/patches/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I've implemented SetHeader and SetFooter methods to enable user specified headers. I've also added changeable fonts and W3C CSS compliant page break (css attribute: page-break-before and page-break-after). There's also a dummy context stack handling, something similar should be used on OpenTag and CloseTag. Hope helps someone, I doesn't have time to finish it myself.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 30 May 2007 09:06:08 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netae6824f538c403b760f8a0895a664cabc4c0dc0f</guid></item><item><title>Problem with colspan</title><link>https://sourceforge.net/p/html2fpdf/patches/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was having a problem with table cells with a colspan&lt;br /&gt;
attribute. The width was being incorrectly calculated,&lt;br /&gt;
forcing cells in the given column to screw up.&lt;/p&gt;
&lt;p&gt;To fix it I changed line 2543 from:&lt;/p&gt;
&lt;p&gt;if ($minwidth &amp;lt; 0 and (-$minwidth) &amp;gt; $wc['miw'])&lt;br /&gt;
$wc['miw'] = (-$minwidth) +2; //increase minimum width&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;if ($minwidth &amp;lt; 0 and (-$minwidth) &amp;gt; $wc['miw'])&lt;br /&gt;
$wc['miw'] = $minwidth+2; //increase minimum width&lt;/p&gt;
&lt;p&gt;All I've done is removed the minus sign from the final&lt;br /&gt;
$minwidth as this was effectively a double negative.&lt;br /&gt;
Now it seems to work fine.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 09 Sep 2005 22:59:57 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net9abbb6e49b3313bdc9812b1519f0bd2cadfd1b6a</guid></item><item><title>Problem with colspan</title><link>https://sourceforge.net/p/html2fpdf/patches/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was having a problem with table cells with a colspan&lt;br /&gt;
attribute. The width was being incorrectly calculated,&lt;br /&gt;
forcing cells in the given column to screw up.&lt;/p&gt;
&lt;p&gt;To fix it I changed line 2543 from:&lt;/p&gt;
&lt;p&gt;if ($minwidth &amp;lt; 0 and (-$minwidth) &amp;gt; $wc['miw'])&lt;br /&gt;
$wc['miw'] = (-$minwidth) +2; //increase minimum width&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;if ($minwidth &amp;lt; 0 and (-$minwidth) &amp;gt; $wc['miw'])&lt;br /&gt;
$wc['miw'] = $minwidth+2; //increase minimum width&lt;/p&gt;
&lt;p&gt;All I've done is removed the minus sign from the final&lt;br /&gt;
$minwidth as this was effectively a double negative.&lt;br /&gt;
Now it seems to work fine.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 09 Sep 2005 17:51:28 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net9ad1096c452e69e52ab29db61efeb7ac3ea6e797</guid></item><item><title>patch for '0' is not null (empty cell)</title><link>https://sourceforge.net/p/html2fpdf/patches/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Here the patch for the rendering of the 0 (integer or&lt;br /&gt;
string), in a table.&lt;br /&gt;
It's the result of the empty(string) php function that&lt;br /&gt;
return false, if argument is 0. (the integer or the string)&lt;/p&gt;
&lt;p&gt;the problem appear on line 1754 :&lt;/p&gt;
&lt;p&gt;if (empty($vetor[0]) and empty($vetor[7])) continue;&lt;/p&gt;
&lt;p&gt;replaced by : &lt;/p&gt;
&lt;p&gt;if (empty($vetor[0]) and empty($vetor[7]) and&lt;br /&gt;
($vetor[0] != '0') and ($vetor[0] != 0)) continue;&lt;/p&gt;
&lt;p&gt;see the attached file&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xdelacour</dc:creator><pubDate>Mon, 25 Jul 2005 09:59:07 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net108abe6e277281ce4ec51c04e9ca8890f6b4e551</guid></item></channel></rss>