Here is my code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<span style="font-size: 24pt; color: #FF0000;"><center><strong>Study for 12/31/1969 - Deliverance</strong></center></span>
<span style="font-size: 7pt; color: #FF0000;"><center> </center></span>
<span style="font-size: 18pt; color: #0000FF;"><center><strong><em>Testing</em></strong></center></span>
<span style="font-size: 3pt; color: #FF0000;"><center> </center></span>
<span style="font-size: 14pt; color: #000000"><justify><P>Testing, testing, one, two, three. <STRONG>Bold.</STRONG> <EM>Italics.</EM> <U>Underline.</U> <FONT color=#ff0000>Red.</FONT> <FONT color=#0000ff>Blue.</FONT> <FONT size=7>BIG!</FONT></P></justify></span>
</BODY>
</HTML>
Once the above code is generated, I make a call to a .php file which contains the following:
$ft = $_GET['file'];
define('FPDF_FONTPATH','font/');
require_once('html2fpdf.php');
$pdf = new HTML2FPDF('P', 'mm', 'Letter');
$pdf->AddPage();
$fp = fopen("temppdf.html","r");
$strContent = fread($fp, filesize("temppdf.html"));
fclose($fp);
$pdf->WriteHTML($strContent);
$pdf->Output($ft, 'D');
my .html code is generated, in part, by openwysiwyg v1.4.7. That script uses the <FONT size=7> instead of the <span style="font-size: ??pt"> format. As far as I've tried, that code cannot be changed.
fpdf will properly process a <span style="font-size: ??pt"> command, but simply ignores the <FONT size=7> commands; there is no support for it. Within the file, there are comments that this section is unfinished for this particular version. As yet, I have been unable to find a newer version than fpdf version 1.52 and html2fpdf 3.0.
The scripts are correctly processing everything else except for the <FONT size=7>, so it's working great. It's just this last 'little' bug that's annoying me. Terminix, where are you when I need you? Any help is greatly appreciated. 😃