org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf
Class PdfReportUtil

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.PdfReportUtil

public final class PdfReportUtil
extends Object

Utility class to provide an easy to use default implementation of PDF exports.

Author:
Thomas Morgner, Cedric Pronzato

Method Summary
static boolean createPDF(MasterReport report, File fileName)
          Saves a report to PDF format.
static boolean createPDF(MasterReport report, OutputStream out)
          Saves a report to PDF format.
static boolean createPDF(MasterReport report, String fileName)
          Concates and saves a list of reports to PDF format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPDF

public static boolean createPDF(MasterReport report,
                                File fileName)
Saves a report to PDF format.

Parameters:
report - the report.
fileName - target file.
Returns:
true if the report has been successfully exported, false otherwise.

createPDF

public static boolean createPDF(MasterReport report,
                                OutputStream out)
Saves a report to PDF format.

Parameters:
report - the report.
out - target output stream.
Returns:
true if the report has been successfully exported, false otherwise.

createPDF

public static boolean createPDF(MasterReport report,
                                String fileName)
Concates and saves a list of reports to PDF format.

Parameters:
report - the report.
fileName - target file name.
Returns:
true if the report has been successfully exported, false otherwise.