|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.internal.PdfViewerPreferencesImp
public class PdfViewerPreferencesImp
Stores the information concerning viewer preferences, and contains the business logic that allows you to set viewer preferences.
| Field Summary | |
|---|---|
static PdfName[] |
DIRECTION_PREFERENCES
A series of viewer preferences. |
static PdfName[] |
DUPLEX_PREFERENCES
A series of viewer preferences. |
static PdfName[] |
NONFULLSCREENPAGEMODE_PREFERENCES
A series of viewer preferences. |
static PdfName[] |
PAGE_BOUNDARIES
A series of viewer preferences. |
private int |
pageLayoutAndMode
This value will hold the viewer preferences for the page layout and page mode. |
static PdfName[] |
PRINTSCALING_PREFERENCES
A series of viewer preferences |
static PdfName[] |
VIEWER_PREFERENCES
|
private PdfDictionary |
viewerPreferences
This dictionary holds the viewer preferences (other than page layout and page mode). |
private static int |
viewerPreferencesMask
The mask to decide if a ViewerPreferences dictionary is needed |
| Constructor Summary | |
|---|---|
PdfViewerPreferencesImp()
|
|
| Method Summary | |
|---|---|
void |
addToCatalog(PdfDictionary catalog)
Adds the viewer preferences defined in the preferences parameter to a PdfDictionary (more specifically the root or catalog of a PDF file). |
void |
addViewerPreference(PdfName key,
PdfObject value)
Sets the viewer preferences for printing. |
private int |
getIndex(PdfName key)
Given a key for a viewer preference (a PdfName object), this method returns the index in the VIEWER_PREFERENCES array. |
int |
getPageLayoutAndMode()
Returns the page layout and page mode value. |
PdfDictionary |
getViewerPreferences()
Returns the viewer preferences. |
static PdfViewerPreferencesImp |
getViewerPreferences(PdfDictionary catalog)
|
private boolean |
isPossibleValue(PdfName value,
PdfName[] accepted)
Checks if some value is valid for a certain key. |
void |
setViewerPreferences(int preferences)
Sets the viewer preferences as the sum of several constants. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PdfName[] VIEWER_PREFERENCES
public static final PdfName[] NONFULLSCREENPAGEMODE_PREFERENCES
public static final PdfName[] DIRECTION_PREFERENCES
public static final PdfName[] PAGE_BOUNDARIES
public static final PdfName[] PRINTSCALING_PREFERENCES
public static final PdfName[] DUPLEX_PREFERENCES
private int pageLayoutAndMode
private PdfDictionary viewerPreferences
private static final int viewerPreferencesMask
| Constructor Detail |
|---|
public PdfViewerPreferencesImp()
| Method Detail |
|---|
public int getPageLayoutAndMode()
public PdfDictionary getViewerPreferences()
public void setViewerPreferences(int preferences)
setViewerPreferences in interface PdfViewerPreferencespreferences - the viewer preferencesPdfViewerPreferences.setViewerPreferences(int)private int getIndex(PdfName key)
key - a PdfName referring to a viewer preference
private boolean isPossibleValue(PdfName value,
PdfName[] accepted)
public void addViewerPreference(PdfName key,
PdfObject value)
addViewerPreference in interface PdfViewerPreferenceskey - the name of the viewer preferencevalue - the value of the viewer preferencePdfViewerPreferences.setViewerPreferences(int)public void addToCatalog(PdfDictionary catalog)
catalog - public static PdfViewerPreferencesImp getViewerPreferences(PdfDictionary catalog)
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||