【发布时间】:2018-10-03 06:45:37
【问题描述】:
目前我正在查看 birt rptdesign 作为 PDF,方法是先创建 PDF 文件,如下所示:
design = engine.openReportDesign("c:/temp/customer.rptdesign");
task = engine.createRunAndRenderTask(design);
PDFRenderOption options = new PDFRenderOption();
options.setOutputFileName("c:/temp/customer.PDF");
options.setOutputFormat("PDF");
然后我用 desktop 打开它,如下所示:
File file = new File("c:/temp/customer.PDF");
try {
Desktop.getDesktop().open(file);
} catch (IOException e) {e.printStackTrace();}
有没有办法直接以PDF格式查看而不先创建PDF文件?
我正在使用 jdk-8u181-windows-i586 和 birt-runtime-4.8.0-20180626。
谢谢。
【问题讨论】: