Prepare for PDF output.