JsonPDF is a wrapper class for FPDF to allow creating PDF document from JSON