Added initial support for PDF generation