public class PDViewerPreferences extends Object implements COSObjectable
Modifier and Type | Class and Description |
---|---|
static class |
PDViewerPreferences.BOUNDARY
Enumeration containing all valid values for boundaries.
|
static class |
PDViewerPreferences.DUPLEX
Enumeration containing all valid values for duplex.
|
static class |
PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
Enumeration containing all valid values for NonFullScreenPageMode.
|
static class |
PDViewerPreferences.PRINT_SCALING
Enumeration containing all valid values for printscaling.
|
static class |
PDViewerPreferences.READING_DIRECTION
Enumeration containing all valid values for ReadingDirection.
|
Constructor and Description |
---|
PDViewerPreferences(COSDictionary dic)
Constructor that is used for a preexisting dictionary.
|
Modifier and Type | Method and Description |
---|---|
boolean |
centerWindow()
Get the center window preference.
|
boolean |
displayDocTitle()
Get the display doc title preference.
|
boolean |
fitWindow()
Get the fit window preference.
|
COSDictionary |
getCOSObject()
This will get the underlying dictionary that this object wraps.
|
String |
getDuplex()
Get the Duplex preference.
|
String |
getNonFullScreenPageMode()
Get the non full screen page mode preference.
|
String |
getPrintArea()
Get the PrintArea preference.
|
String |
getPrintClip()
Get the PrintClip preference.
|
String |
getPrintScaling()
Get the PrintScaling preference.
|
String |
getReadingDirection()
Get the reading direction preference.
|
String |
getViewArea()
Get the ViewArea preference.
|
String |
getViewClip()
Get the ViewClip preference.
|
boolean |
hideMenubar()
Get the menubar preference.
|
boolean |
hideToolbar()
Get the toolbar preference.
|
boolean |
hideWindowUI()
Get the window UI preference.
|
void |
setCenterWindow(boolean value)
Set the center window preference.
|
void |
setDisplayDocTitle(boolean value)
Set the display doc title preference.
|
void |
setDuplex(PDViewerPreferences.DUPLEX value)
Set the Duplex preference.
|
void |
setFitWindow(boolean value)
Set the fit window preference.
|
void |
setHideMenubar(boolean value)
Set the menubar preference.
|
void |
setHideToolbar(boolean value)
Set the toolbar preference.
|
void |
setHideWindowUI(boolean value)
Set the window UI preference.
|
void |
setNonFullScreenPageMode(PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE value)
Set the non full screen page mode preference.
|
void |
setNonFullScreenPageMode(String value)
Deprecated.
|
void |
setPrintArea(PDViewerPreferences.BOUNDARY value)
Set the PrintArea preference.
|
void |
setPrintArea(String value)
Deprecated.
|
void |
setPrintClip(PDViewerPreferences.BOUNDARY value)
Set the PrintClip preference.
|
void |
setPrintClip(String value)
Deprecated.
|
void |
setPrintScaling(PDViewerPreferences.PRINT_SCALING value)
Set the PrintScaling preference.
|
void |
setReadingDirection(PDViewerPreferences.READING_DIRECTION value)
Set the reading direction preference.
|
void |
setReadingDirection(String value)
Deprecated.
|
void |
setViewArea(PDViewerPreferences.BOUNDARY value)
Set the ViewArea preference.
|
void |
setViewArea(String value)
Deprecated.
|
void |
setViewClip(PDViewerPreferences.BOUNDARY value)
Set the ViewClip preference.
|
void |
setViewClip(String value)
Deprecated.
|
public static final String NON_FULL_SCREEN_PAGE_MODE_USE_NONE
PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
insteadpublic static final String NON_FULL_SCREEN_PAGE_MODE_USE_OUTLINES
PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
insteadpublic static final String NON_FULL_SCREEN_PAGE_MODE_USE_THUMBS
PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
insteadpublic static final String NON_FULL_SCREEN_PAGE_MODE_USE_OPTIONAL_CONTENT
PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
insteadpublic static final String READING_DIRECTION_L2R
PDViewerPreferences.READING_DIRECTION
insteadpublic static final String READING_DIRECTION_R2L
PDViewerPreferences.READING_DIRECTION
insteadpublic static final String BOUNDARY_MEDIA_BOX
PDViewerPreferences.BOUNDARY
insteadpublic static final String BOUNDARY_CROP_BOX
PDViewerPreferences.BOUNDARY
insteadpublic static final String BOUNDARY_BLEED_BOX
PDViewerPreferences.BOUNDARY
insteadpublic static final String BOUNDARY_TRIM_BOX
PDViewerPreferences.BOUNDARY
insteadpublic static final String BOUNDARY_ART_BOX
PDViewerPreferences.BOUNDARY
insteadpublic PDViewerPreferences(COSDictionary dic)
dic
- The underlying dictionary.public COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
public boolean hideToolbar()
public void setHideToolbar(boolean value)
value
- Set the toolbar preference.public boolean hideMenubar()
public void setHideMenubar(boolean value)
value
- Set the menubar preference.public boolean hideWindowUI()
public void setHideWindowUI(boolean value)
value
- Set the window UI preference.public boolean fitWindow()
public void setFitWindow(boolean value)
value
- Set the fit window preference.public boolean centerWindow()
public void setCenterWindow(boolean value)
value
- Set the center window preference.public boolean displayDocTitle()
public void setDisplayDocTitle(boolean value)
value
- Set the display doc title preference.public String getNonFullScreenPageMode()
public void setNonFullScreenPageMode(PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE value)
value
- Set the non full screen page mode preference.public void setNonFullScreenPageMode(String value)
value
- Set the non full screen page mode preference.public String getReadingDirection()
public void setReadingDirection(PDViewerPreferences.READING_DIRECTION value)
value
- Set the reading direction preference.public void setReadingDirection(String value)
value
- Set the reading direction preference.public String getViewArea()
public void setViewArea(String value)
value
- Set the ViewArea preference.public void setViewArea(PDViewerPreferences.BOUNDARY value)
value
- Set the ViewArea preference.public String getViewClip()
public void setViewClip(PDViewerPreferences.BOUNDARY value)
value
- Set the ViewClip preference.public void setViewClip(String value)
value
- Set the ViewClip preference.public String getPrintArea()
public void setPrintArea(String value)
value
- Set the PrintArea preference.public void setPrintArea(PDViewerPreferences.BOUNDARY value)
value
- Set the PrintArea preference.public String getPrintClip()
public void setPrintClip(String value)
value
- Set the PrintClip preference.public void setPrintClip(PDViewerPreferences.BOUNDARY value)
value
- Set the PrintClip preference.public String getDuplex()
public void setDuplex(PDViewerPreferences.DUPLEX value)
value
- Set the Duplex preference.public String getPrintScaling()
public void setPrintScaling(PDViewerPreferences.PRINT_SCALING value)
value
- Set the PrintScaling preference.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.