org.sejda.model.pdf.viewerpreference
Enum PdfDuplex

java.lang.Object
  extended by java.lang.Enum<PdfDuplex>
      extended by org.sejda.model.pdf.viewerpreference.PdfDuplex
All Implemented Interfaces:
Serializable, Comparable<PdfDuplex>, FriendlyNamed, MinRequiredVersion

public enum PdfDuplex
extends Enum<PdfDuplex>
implements MinRequiredVersion, FriendlyNamed

Possible values for the paper handling option to use when printing the file from the print dialog.
Pdf reference 1.7, TABLE 8.1 Entries in a viewer preferences dictionary

Author:
Andrea Vacondio

Enum Constant Summary
DUPLEX_FLIP_LONG_EDGE
           
DUPLEX_FLIP_SHORT_EDGE
           
SIMPLEX
           
 
Method Summary
 String getFriendlyName()
           
 PdfVersion getMinVersion()
           
static PdfDuplex valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PdfDuplex[] 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

SIMPLEX

public static final PdfDuplex SIMPLEX

DUPLEX_FLIP_SHORT_EDGE

public static final PdfDuplex DUPLEX_FLIP_SHORT_EDGE

DUPLEX_FLIP_LONG_EDGE

public static final PdfDuplex DUPLEX_FLIP_LONG_EDGE
Method Detail

values

public static PdfDuplex[] 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 (PdfDuplex c : PdfDuplex.values())
    System.out.println(c);

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

valueOf

public static PdfDuplex 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

getFriendlyName

public String getFriendlyName()
Specified by:
getFriendlyName in interface FriendlyNamed
Returns:
the friendly name of the entity, to be usually used as a representation for an user.

getMinVersion

public PdfVersion getMinVersion()
Specified by:
getMinVersion in interface MinRequiredVersion
Returns:
the minimum required version


Copyright © 2013 sejda. All Rights Reserved.