Small tweaks for PDF generation.