com.pdfunit

## Class DocumentFormat

- java.lang.Object
- - com.pdfunit.DocumentFormat

- Direct Known Subclasses:
    DocumentFormatMillis

      @DoNotObfuscate
      public abstract class DocumentFormat
      extends java.lang.Object

  This class defines the tollerance for PDF formats according to ISO 216 and DIN 476, described in the german articles Papierformat (Normen) and Papierformat (Wikipedia).

  Subclasses of this class has to mention, that all values have the init 'points'.

  Since:
    2016.05
  Author:
    Carsten Siedentop, February 2016

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DocumentFormat()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected int` | `addTolerance(int lengthInPoints)` Adding the allowed difference (DIN 476) to the current length.
    `abstract java.awt.geom.Rectangle2D` | `getRectangleUpperLeftBasedPoints()`
    `abstract java.awt.geom.Rectangle2D` | `getRectangleUpperLeftBasedPointsWithTolerance()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DocumentFormat

          public DocumentFormat()

  - ### Method Detail

    - #### getRectangleUpperLeftBasedPoints

          public abstract java.awt.geom.Rectangle2D getRectangleUpperLeftBasedPoints()

    - #### getRectangleUpperLeftBasedPointsWithTolerance

          public abstract java.awt.geom.Rectangle2D getRectangleUpperLeftBasedPointsWithTolerance()

    - #### addTolerance

          protected int addTolerance(int lengthInPoints)

      Adding the allowed difference (DIN 476) to the current length.

Copyright (C) PDFUnit.com. See here for license.