Interface PageMargins

All Known Subinterfaces:
PageMargins.CustomMargins

public interface PageMargins
The page margins used for printing.
Since:
7.13
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Page margins in points.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    Creates default margins for the web page.
    Creates empty margins for the web page.
    of(int left, int right, int top, int bottom)
    Creates custom margins for the web page in points.
  • Method Details

    • defaultMargins

      static PageMargins defaultMargins()
      Creates default margins for the web page.
    • none

      static PageMargins none()
      Creates empty margins for the web page.
    • of

      static PageMargins.CustomMargins of(int left, int right, int top, int bottom)
      Creates custom margins for the web page in points. One point equals 1/72 of an inch.
      Parameters:
      left - the margin on the left side of the sheet
      right - the margin on the right side of the sheet
      top - the margin on the top side of the sheet
      bottom - the margin on the bottom side of the sheet
      Throws:
      IllegalArgumentException - if any of the input parameters is negative