You could replace the 'render it in a browser' phase with something like html2ps or html2pdf.
In reply to Re: Printing from a browser by derby in thread Printing from a browser by PerliKnight