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 TypeMethodDescriptionReturns anOptionalthat contains the absolute destination PDF file path, or an emptyOptionalif there is not path configured.pdfFilePath(Path pdfFilePath) Configures the path to the destination PDF file to print to.
-
Method Details
-
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 thepdfFilePathis not absoluteIllegalArgumentException- if thepdfFilePathpoints to a directoryObjectClosedException- if the current printing operation has been completed
-
pdfFilePath
Returns anOptionalthat contains the absolute destination PDF file path, or an emptyOptionalif there is not path configured.- Throws:
ObjectClosedException- if the current printing operation has been completed
-