Interface PdfFilePath<T extends PrintSettings>

Type Parameters:
T - the concrete print settings type
All Known Subinterfaces:
PdfPrinter.HtmlSettings, PdfPrinter.PdfSettings, PdfPrinter.Settings<T>

public interface PdfFilePath<T extends PrintSettings>
Allows configuring the destination PDF file path.

Implemented by concrete PrintSettings implementations that support configuring the destination PDF file path.

Since:
7.13
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an Optional that contains the absolute destination PDF file path, or an empty Optional if there is not path configured.
    pdfFilePath(Path pdfFilePath)
    Configures the path to the destination PDF file to print to.
  • Method Details

    • pdfFilePath

      T pdfFilePath(Path pdfFilePath)
      Configures the path to the destination PDF file to print to.
      Parameters:
      pdfFilePath - the absolute PDF file path
      Returns:
      this instance
      Throws:
      IllegalArgumentException - if the pdfFilePath is not absolute
      IllegalArgumentException - if the pdfFilePath points to a directory
      ObjectClosedException - if the current printing operation has been completed
    • pdfFilePath

      Optional<Path> pdfFilePath()
      Returns an Optional that contains the absolute destination PDF file path, or an empty Optional if there is not path configured.
      Throws:
      ObjectClosedException - if the current printing operation has been completed