optionsPDF.setOutputFileName("D:/Temp/output.pdf");
optionsPDF.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_PDF);
renderTask.setRenderOption(optionsPDF);
// render
renderTask.render();
// render the report and destroy the engine
// Note - If the program stays resident do not shutdown the Platform or the Engine
// rptdoc.close();
renderTask.close();