Add PDF generation and viewing.