Write HTML tables

Informations

Author: Rick van Buuren
License: FPDF

Description

This script allows you to convert HTML tables to PDF Cells. It can parse:

<table border="border">
where border can be 1 or 0

<tr>
which adds a new row

<td width="width" height="height" bgcolor="bgcolor">
where width and height are integers and bgcolor is HTML color code

It's a really simple script. Inner tags can give some problems; <td><b>big</b> small<td> won't give a proper output for example. It also doesn't place pictures in a correct way, although you can use a table to align a picture:

<table><tr><td width="200">&nbsp;</td><td width="200"><img src="..." width="..." height="..."></td></tr></table>

will align a picture in the middle.

You need to use &nbsp; when you want a blank cell.