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

public class PDFReportOutput extends Object
A PDFReportOutput is an implementation of ReportOutput that creates a PDF file.
  • Constructor Details

    • PDFReportOutput

      public PDFReportOutput()
  • Method Details

    • getPDF

      public PDF getPDF()
      Return the PDF generated by this PDFReportOutput. Will be null until after the Report.parse() has completed
      Returns:
      the PDF
    • addDataList

      public void addDataList(String id, List<String> options)
    • write

      public void write(OutputStream out) throws IOException
      Description copied from interface: ReportOutput
      Write 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 an UnsupportedOperationException.
      Throws:
      IOException - if generated when writing.
    • getMediaType

      public MediaType getMediaType()
      Description copied from interface: ReportOutput
      Return the type of object that would be written by ReportOutput.write(java.io.OutputStream), or if that method doesn't apply, the type of Media generated by this ReportOutput.
    • isPageBlank

      public boolean isPageBlank()
      Description copied from interface: ReportOutput
      Return true if the current page is blank
      Specified by:
      isPageBlank in interface ReportOutput
    • markPage

      public void markPage()
      Description copied from interface: ReportOutput
      Record that this page is not blank
      Specified by:
      markPage in interface org.faceless.publisher.output.ReportCanvasContext
      Specified by:
      markPage in interface ReportOutput
    • getEnvironmentAsString

      default String getEnvironmentAsString(String name, String dflt)
    • getEnvironmentAsStringList

      default List<String> getEnvironmentAsStringList(String name, List<String> dflt)
    • getEnvironmentAsInt

      default Integer getEnvironmentAsInt(String name, Integer dflt)
    • getEnvironmentAsURL

      default URL2 getEnvironmentAsURL(String name, URL2 dflt)
    • getEnvironmentAsBoolean

      default Boolean getEnvironmentAsBoolean(String name, Boolean dflt)
    • getEnvironmentAsFloat

      default Float getEnvironmentAsFloat(String name, Float dflt)
    • getEnvironmentAsFloatOrInf

      default Float getEnvironmentAsFloatOrInf(String name, Float dflt)
    • getEnvironmentAsLength

      default org.faceless.publisher.type.Length getEnvironmentAsLength(String name, org.faceless.publisher.type.Length dflt)
    • getEnvironmentAsResolution

      default Float getEnvironmentAsResolution(String name, Float dflt)
    • getEnvironmentAsResolutionOrInf

      default Float getEnvironmentAsResolutionOrInf(String name, Float dflt)
    • getEnvironmentAsTime

      default Float getEnvironmentAsTime(String name, Float dflt)
    • getEnvironmentAsColor

      default org.faceless.publisher.type.CSSColor getEnvironmentAsColor(String name, org.faceless.publisher.type.CSSColor dflt)