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) voidInform the output that it is 100% complete.voidfree(org.faceless.publisher.type.AbstractNode node) Inform the output that the specified node has been freedReturn 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
-
eviscerate
public void eviscerate()Inform the output that it is 100% complete. Must be called AFTER close -
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. This method will fire a "write.start" and "write.end"LifeCycleEventon the before and after writing.- 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. -
free
public void free(org.faceless.publisher.type.AbstractNode node) Inform the output that the specified node has been freed- Specified by:
freein interfaceReportOutput
-
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
-