BIRT-Automated generate pdf report
建立產生report的engine EngineConfig config = new EngineConfig(); String home = Platform.getInstallLocation().getURL().toString() .substring(6); log.info("Pdf Report Engine home: " + home); config.setEngineHome(home); config.setLogConfig(Platform.getInstallLocation().getURL().toString() .substring(6) + "logs", Level.WARNING); pdfReportEngine = new ReportEngine(config); 設定輸出格式 PDFRenderOption option = new PDFRenderOption(); option.setOutputFormat("pdf"); option.closeOutputStreamOnExit(true); String outputName ="test.pdf"; LOG.info("generate report : "+outputName); try { OutputStream output = new FileOutputStream(outputName); option.setOutputStream(output); } catch (FileNotFoundException e) { LOG.error("