dolce: HTML Tabelle to PDF

Hallo Forum

Ich habe mir das selber erstellen eines PDF's mittels JavaScript angetan, welches soweit gut funktioniert. Meine Frage nun, wie kriege ich eine Tabelle in dieses PDF?
Lösungsansätze waren:
Tabelle als solches einfügen /* Hat nicht funktioniert */
Tabelle zu einem Stream (Stream.make())casten /* Hat nicht funktioniert */
Tabelle zu einem Image konvertieren, bin ich immer noch in der Try Error Phase.
Mir steht kein PHP zur verfügung, also reines JavaScript

Vorlage zu meinem PDF Generator findet Ihr hier: http://www.thilobrai.onlinehome.de/js/Der_PDF-Kreator.html

funktion zur dynamic Table habe ich wie folgt gebaut:
function start()
{
    // get the reference for the body
    var body = document.getElementsByTagName("body")[0];

// creates a <table> element and a <tbody> element
    var tbl     = document.createElement("table");
    var tblBody = document.createElement("tbody");

// creating all cells
    for (var j = 0; j < 2; j++)
{
// creates a table row
var row = document.createElement("tr");

	for (var i = 0; i < 2; i++)  
	{  
		// Create a <td> element and a text node, make the text  
		// node the contents of the <td>, and put the <td> at  
		// the end of the table row  
		var cell = document.createElement("td");  
		var cellText = document.createTextNode("cell is row "+j+", column "+i);  
			cell.appendChild(cellText);  
			row.appendChild(cell);  
	}  

// add the row to the end of the table body
        tblBody.appendChild(row);
    }

// put the <tbody> in the <table>
    tbl.appendChild(tblBody);
    // appends <table> into <body>
    body.appendChild(tbl);
    // sets the border attribute of tbl to 2;
    tbl.setAttribute("border", "2");
}

nun will ich diese erstellte Tabelle in einen Stream oder Image Casten, damit ich dies wie folgt einfügen kann.

Diese Methode schreibt mir ein Image in das zu erstellende PDF:
//--- Die Abmessung ist W = 100, H = 70.
//--- Die Bits einer Bilderzeile müssen ein Vielfaches von 8 sein.
//--- Zu pN1: Ein Punkt ergibt Weiß (== 1), Leerstellen werden gelöscht.
g.PaintBitmap(100, 700, 40, 28, 100, 70, "/G", 1, "/AHx",
                // 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
                pN1(". . . . . . . . . . - - - - - -"
                    + ". X X X . . X X X . - - - - - -"
                    + ". . . X . X . . . . - - - - - -"
                    + ". . . X . . X X . . - - - - - -"
                    + ". X . X . . . . X . - - - - - -"
                    + ". . X . . X X X . . - - - - - -"
                    + ". . . . . . . . . . - - - - - -"
                ) + '>' // Stream-Ende-Marker
                , "/Interpolate true");

Weiß jemand von euch Rat?
Ich darf vorweg nehmen, das ich nur nebenbei mit JavaScript arbeite. Mein Hauptarbeitsgebiet liegt in C#

Gruss dolce