Misc fixes for tables/printing.
Change table function to startTable.
Set doc page size to match printer page size.
Use QPrinter PaperSize instead of deprecated PageSize.