Class PDFReportOutput
java.lang.Object
org.faceless.publisher.output.pdf.PDFReportOutput
- All Implemented Interfaces:
org.faceless.publisher.output.ReportCanvasContext,ReportOutput,org.faceless.publisher.type.EnvSource
A PDFReportOutput is an implementation of
ReportOutput
that creates a PDF file.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataList(String id, List<String> options) Return the type of object that would be written byReportOutput.write(java.io.OutputStream), or if that method doesn't apply, the type of Media generated by this ReportOutput.PDFgetPDF()Return the PDF generated by this PDFReportOutput.booleanReturn true if the current page is blankvoidmarkPage()Record that this page is not blankvoidwrite(OutputStream out) Write the object generated by this ReportOutput to the specified OutpuStream.
-
Constructor Details
-
PDFReportOutput
public PDFReportOutput()
-
-
Method Details
-
getPDF
public PDF getPDF()Return the PDF generated by this PDFReportOutput. Will be null until after theReport.parse()has completed- Returns:
- the PDF
-
addDataList
-
write
Description copied from interface:ReportOutputWrite the object generated by this ReportOutput to the specified OutpuStream. The exact object written is instance dependent, and if no single file is appropriate this method may throw anUnsupportedOperationException.- Throws:
IOException- if generated when writing.
-
getMediaType
Description copied from interface:ReportOutputReturn the type of object that would be written byReportOutput.write(java.io.OutputStream), or if that method doesn't apply, the type of Media generated by this ReportOutput. -
isPageBlank
public boolean isPageBlank()Return true if the current page is blank- Specified by:
isPageBlankin interfaceReportOutput
-
markPage
public void markPage()Record that this page is not blank- Specified by:
markPagein interfaceorg.faceless.publisher.output.ReportCanvasContext- Specified by:
markPagein interfaceReportOutput
-