Interface PrintBackgrounds<T extends PrintSettings>

Type Parameters:
T - the concrete print settings type
All Known Subinterfaces:
PdfPrinter.HtmlSettings, SystemPrinter.HtmlSettings

public interface PrintBackgrounds<T extends PrintSettings>
Allows configuring printing background graphics.

Implemented by concrete PrintSettings implementations that support configuring printing background graphics.

Since:
7.13
  • Method Details

    • enablePrintingBackgrounds

      T enablePrintingBackgrounds()
      Enables printing background graphics.
      Returns:
      this instance
      Throws:
      ObjectClosedException - if the current printing operation has been completed
    • disablePrintingBackgrounds

      T disablePrintingBackgrounds()
      Disables printing background graphics.
      Returns:
      this instance
      Throws:
      ObjectClosedException - if the current printing operation has been completed
    • isPrintingBackgroundsEnabled

      boolean isPrintingBackgroundsEnabled()
      Returns true if printing background graphics is enabled.
      Throws:
      ObjectClosedException - if the current printing operation has been completed