Class PdfGenerator

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void export​(javafx.stage.Window ownerWindow)
      Opens a save dialog and exports the current statement as a PDF.
      static void generate​(Statement stmt, java.io.File outputFile)
      Fills the Jasper report template from the given statement and writes the result to the specified file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • generate

        public static void generate​(Statement stmt,
                                    java.io.File outputFile)
                             throws java.io.IOException
        Fills the Jasper report template from the given statement and writes the result to the specified file.
        Parameters:
        stmt - the statement to export
        outputFile - the destination file to write the PDF to
        Throws:
        java.io.IOException - if the template cannot be loaded or PDF generation fails
      • export

        public static void export​(javafx.stage.Window ownerWindow)
        Opens a save dialog and exports the current statement as a PDF. Shows a success or error alert when the operation completes.
        Parameters:
        ownerWindow - the owner window for the save dialog and any alerts shown