Gets things ready for printing.