Package com.pd4ml

Interface Dimensions

  • All Known Implementing Classes:
    PageMargins, PageSize

    public interface Dimensions
    Unit conversion factors and measurement units used by PageSize and PageMargins. PDF dimensions are measured in points (1/72 inch).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static float MM_PER_INCH
      Millimeters per inch: 25.4.
      static float PIXELS_PER_POINT
      HTML pixels per point when no HTML width is set: 1.35.
      static float POINTS_PER_INCH
      Points per inch: 72.
      static float POINTS_PER_MM
      Points per millimeter: 2.835 (72 / 25.4, rounded).
    • Field Detail

      • MM_PER_INCH

        static final float MM_PER_INCH
        Millimeters per inch: 25.4.
        See Also:
        Constant Field Values
      • POINTS_PER_MM

        static final float POINTS_PER_MM
        Points per millimeter: 2.835 (72 / 25.4, rounded).
        See Also:
        Constant Field Values
      • POINTS_PER_INCH

        static final float POINTS_PER_INCH
        Points per inch: 72.
        See Also:
        Constant Field Values
      • PIXELS_PER_POINT

        static final float PIXELS_PER_POINT
        HTML pixels per point when no HTML width is set: 1.35. With this factor, a 1px line is about 0.74pt wide on the page.
        See Also:
        PD4ML.setHtmlWidth(int), Constant Field Values