Class PdfReportUtil
- java.lang.Object
-
- 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
createPDF
public static boolean createPDF(MasterReport report, File fileName) throws ReportProcessingException, IOException
Saves a report to PDF format.- Parameters:
report
- the report.fileName
- target file.- Returns:
- true if the report has been successfully exported, false otherwise.
- Throws:
ReportProcessingException
IOException
-
createPDF
public static boolean createPDF(MasterReport report, OutputStream out) throws ReportProcessingException
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.
- Throws:
ReportProcessingException
-
createPDF
public static boolean createPDF(MasterReport report, String fileName) throws ReportProcessingException, IOException
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.
- Throws:
ReportProcessingException
IOException
-
-