org.foray.pdf.object
Enum PDFFont.SubType

java.lang.Object
  extended by java.lang.Enum<PDFFont.SubType>
      extended by org.foray.pdf.object.PDFFont.SubType
All Implemented Interfaces:
Serializable, Comparable<PDFFont.SubType>
Enclosing class:
PDFFont

public static enum PDFFont.SubType
extends Enum<PDFFont.SubType>

Enumeration of the various font subtypes possible in a PDF document.


Enum Constant Summary
MMTYPE1
          Font subtype indicating a Multiple Master Type 1 simple font.
TRUETYPE
          Font subtype indicating a TrueType simple font.
TYPE0
          Font subtype indicating a composite font.
TYPE1
          Font subtype indicating a Type 1 simple font.
TYPE3
          Font subtype indicating a Type 3 simple font.
 
Method Summary
 String getPdfName()
          Returns the name of this SubType, as it appears in a PDF document.
static PDFFont.SubType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PDFFont.SubType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TYPE0

public static final PDFFont.SubType TYPE0
Font subtype indicating a composite font.


TYPE1

public static final PDFFont.SubType TYPE1
Font subtype indicating a Type 1 simple font.


MMTYPE1

public static final PDFFont.SubType MMTYPE1
Font subtype indicating a Multiple Master Type 1 simple font.


TYPE3

public static final PDFFont.SubType TYPE3
Font subtype indicating a Type 3 simple font.


TRUETYPE

public static final PDFFont.SubType TRUETYPE
Font subtype indicating a TrueType simple font.

Method Detail

values

public static PDFFont.SubType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PDFFont.SubType c : PDFFont.SubType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PDFFont.SubType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getPdfName

public String getPdfName()
Returns the name of this SubType, as it appears in a PDF document.

Returns:
The name of thes SubType, as it appears in a PDF document.


Copyright © 2017. All rights reserved.