All of these list the essential code for converting the HTML content of a page to a PDF fairly straight-forwardly.
However in each case either when I get to the document.close() method call, I get an error reporting "The Document has no pages." or I open a PDF which only shows the borders of my tables with none of the cell contents. I have searched all over the web and have only found slight modification of the basic technique.
Can someone take a look at this code to show where I am going wrong. (POI I confirm with each step through that the Stringreader reader is properly populated with the html of the control I am rendering.)