title: JavaFX print tableview on multiple pages
body: <p>So, my problem is that I need to print the content of my tableview, but I have so many items in it, that it only prints the first 23 of them.
  I found a few solutions here already, unfortunately they didn't help much.</p>
  
  <p>This is my print method:</p>
  
  <pre><code>@FXML
  private void printIt() {
      Printer printer = Printer.getDefaultPrinter();
      PageLayout pageLayout = printer.createPageLayout(Paper.A4, PageOrientation.LANDSCAPE, Printer.MarginType.DEFAULT);
      double scaleX = pageLayout.getPrintableWidth() / logBookTable.getBoundsInParent().getWidth();
      double scaleY = pageLayout.getPrintableHeight() / logBookTable.getBoundsInParent().getHeight();
      logBookTable.getTransforms().add(new Scale(scaleX, scaleY));
  
      PrinterJob job = PrinterJob.createPrinterJob();
      if (job != null) {
          boolean successPrintDialog = job.showPrintDialog(dialogStage);
          if(successPrintDialog){
              boolean success = job.printPage(pageLayout,logBookTable);
              if (success) {
                  job.endJob();
              }
          }
      }
  }
  </code></pre>