JSON to PDF generation