API to generate PDF Reports