<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/html2fpdf/patches/" rel="alternate"></link><link href="https://sourceforge.net/p/html2fpdf/patches/feed.atom" rel="self"></link><id>https://sourceforge.net/p/html2fpdf/patches/</id><updated>2010-08-10T20:20:03Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Table display - fix center bug</title><link href="https://sourceforge.net/p/html2fpdf/patches/19/" rel="alternate"></link><published>2010-08-10T20:20:03Z</published><updated>2010-08-10T20:20:03Z</updated><author><name>zlorf</name><uri>https://sourceforge.net/u/zlorfer/</uri></author><id>https://sourceforge.neta03dad7007298e3dfa89185249c547c529f01642</id><summary type="html">&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;</summary></entry><entry><title>Enable/disable footer</title><link href="https://sourceforge.net/p/html2fpdf/patches/18/" rel="alternate"></link><published>2008-01-25T16:44:50Z</published><updated>2008-01-25T16:44:50Z</updated><author><name>manel zaera</name><uri>https://sourceforge.net/u/manelzaera/</uri></author><id>https://sourceforge.net31ea1c11ee6ff4d4009de204ab33c35c4037598c</id><summary type="html">&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;</summary></entry><entry><title>Table row with only &amp;nbsp; not rendered</title><link href="https://sourceforge.net/p/html2fpdf/patches/17/" rel="alternate"></link><published>2007-12-31T22:45:34Z</published><updated>2007-12-31T22:45:34Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net94f5f66a70ff3f1c68f57c7ce8dd83d7c6d5d1a1</id><summary type="html">&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;</summary></entry><entry><title>[patch] Table inline CSS support</title><link href="https://sourceforge.net/p/html2fpdf/patches/16/" rel="alternate"></link><published>2007-09-11T23:50:33Z</published><updated>2007-09-11T23:50:33Z</updated><author><name>DjDarkman</name><uri>https://sourceforge.net/u/djdarkman/</uri></author><id>https://sourceforge.netdd37a97a530ecf9a8a5aa7a20623804ba6cb797e</id><summary type="html">&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;</summary></entry><entry><title>[patch] Support for Landscape orientation</title><link href="https://sourceforge.net/p/html2fpdf/patches/15/" rel="alternate"></link><published>2007-09-11T23:46:44Z</published><updated>2007-09-11T23:46:44Z</updated><author><name>DjDarkman</name><uri>https://sourceforge.net/u/djdarkman/</uri></author><id>https://sourceforge.netdd4996ce8b725ac3c735c8cdb337dc9a30426ede</id><summary type="html">&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;</summary></entry><entry><title>CSS border (-left,-right,-top,-bottom) + html header</title><link href="https://sourceforge.net/p/html2fpdf/patches/14/" rel="alternate"></link><published>2007-05-30T15:10:01Z</published><updated>2007-05-30T15:10:01Z</updated><author><name>Turdus</name><uri>https://sourceforge.net/u/zoltankancsal/</uri></author><id>https://sourceforge.neta8ef4dcb7556be92368e6332a20627bf01f997d4</id><summary type="html">&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;</summary></entry><entry><title>Adds HTML living header and footer support</title><link href="https://sourceforge.net/p/html2fpdf/patches/13/" rel="alternate"></link><published>2007-05-30T09:06:08Z</published><updated>2007-05-30T09:06:08Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netae6824f538c403b760f8a0895a664cabc4c0dc0f</id><summary type="html">&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;</summary></entry><entry><title>Problem with colspan</title><link href="https://sourceforge.net/p/html2fpdf/patches/12/" rel="alternate"></link><published>2005-09-09T22:59:57Z</published><updated>2005-09-09T22:59:57Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net9abbb6e49b3313bdc9812b1519f0bd2cadfd1b6a</id><summary type="html">&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;</summary></entry><entry><title>Problem with colspan</title><link href="https://sourceforge.net/p/html2fpdf/patches/11/" rel="alternate"></link><published>2005-09-09T17:51:28Z</published><updated>2005-09-09T17:51:28Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net9ad1096c452e69e52ab29db61efeb7ac3ea6e797</id><summary type="html">&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;</summary></entry><entry><title>patch for '0' is not null (empty cell)</title><link href="https://sourceforge.net/p/html2fpdf/patches/10/" rel="alternate"></link><published>2005-07-25T09:59:07Z</published><updated>2005-07-25T09:59:07Z</updated><author><name>xdelacour</name><uri>https://sourceforge.net/u/xdelacour/</uri></author><id>https://sourceforge.net108abe6e277281ce4ec51c04e9ca8890f6b4e551</id><summary type="html">&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;</summary></entry></feed>