Class LengthUnit

java.lang.Object
com.azure.core.util.ExpandableStringEnum<LengthUnit>
com.azure.ai.documentintelligence.models.LengthUnit

public final class LengthUnit extends com.azure.core.util.ExpandableStringEnum<LengthUnit>
The unit used by the width, height, and polygon properties. For images, the unit is "pixel". For PDF, the unit is "inch".
  • Field Details

    • PIXEL

      public static final LengthUnit PIXEL
      Length unit for image files.
    • INCH

      public static final LengthUnit INCH
      Length unit for PDF files.
  • Constructor Details

  • Method Details

    • fromString

      public static LengthUnit fromString(String name)
      Creates or finds a LengthUnit from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding LengthUnit.
    • values

      public static Collection<LengthUnit> values()
      Gets known LengthUnit values.
      Returns:
      known LengthUnit values.