org.sejda.model.pdf.viewerpreference
Enum PdfPrintScaling

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

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

Possible values for the page scaling option to be selected when a print dialog is displayed for this document.
Pdf reference 1.7, TABLE 8.1 Entries in a viewer preferences dictionary

Author:
Andrea Vacondio

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

NONE

public static final PdfPrintScaling NONE

APP_DEFAULT

public static final PdfPrintScaling APP_DEFAULT
Method Detail

values

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

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

valueOf

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

getMinVersion

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

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.


Copyright © 2013 sejda. All Rights Reserved.