function printaction ( )
Override default print handler, so we can generate PDFs without having to use the print system by default.