|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.ViewerPreferences
public class ViewerPreferences
Represents the viewer preferences for a document.
Licensing:
This class is a DynamicPDF Generator Community Edition feature.
Method Summary | |
---|---|
void |
draw(DocumentWriter writer)
Draws the encrypter viewer preferences dictionary to the given DocumentWriter object. |
boolean |
getCenterWindow()
A flag specifying whether the document�s window will be positioned in the center of the screen. |
boolean |
getDisplayDocTitle()
A flag specifying whether the window�s title bar will display the document title taken from the Title entry of the document of the PDF file containing the document. |
Duplex |
getDuplex()
Gets the default duplex printing mode for the document. |
boolean |
getFitWindow()
A flag specifying whether the document�s window will be resized to fit the size of the first displayed page. |
boolean |
getHideMenubar()
A flag specifying whether the viewer application�s menu bar is hidden when the document is active. |
boolean |
getHideToolbar()
A flag specifying whether the viewer application�s tool bars were hidden when the document is active. |
boolean |
getHideWindowUI()
A flag specifying whether the user interface elements in the document�s window (such as scrollbars and navigation controls), were hidden leaving only the document�s contents displayed. |
NonFullScreenPageMode |
getNonFullScreenPageMode()
Gets the page mode when the documents page mode is set to full screen. |
boolean |
getNoPrintScaling()
Gets scaling of the print document. |
int |
getNumberOfCOpies()
Gets the default number of copies to be printed. |
PickTrayByPdfSize |
getPickTrayByPdfSize()
Gets the printing tray should be picked based on the size of the PDF document. |
PageBoundary |
getPrintArea()
Gets the print area for the document. |
PageBoundary |
getPrintClip()
Gets the print clip area for the document. |
int[] |
getPrintPageRange()
Gets the default page ranges to be used for printing. |
boolean |
getRightToLeft()
Gets a flag specifying if right to left text is predominately used by this document. |
PageBoundary |
getViewArea()
Gets the view area for the document. |
PageBoundary |
getViewClip()
Gets the view clip area for the document. |
void |
setCenterWindow(boolean centerWindow)
A flag to position the document�s window in the center of the screen. |
void |
setDisplayDocTitle(boolean displayDocTitle)
A flag to specify the window�s title bar should display the document title taken from the Title entry of the document of the PDF file containing the document. |
void |
setDuplex(Duplex value)
Sets the default duplex printing mode for the document.. |
void |
setFitWindow(boolean fitWindow)
A flag to resize the document�s window to fit the size of the first displayed page. |
void |
setHideMenubar(boolean hideMenubar)
A flag to hide the viewer application�s menu bar when the document is active. |
void |
setHideToolbar(boolean hideToolbar)
A flag to hide the viewer application�s tool bars when the document is active. |
void |
setHideWindowUI(boolean hideWindowUI)
A flag to hide user interface elements in the document�s window (such as scrollbars and navigation controls), leaving only the document�s contents displayed. |
void |
setNonFullScreenPageMode(NonFullScreenPageMode value)
Specifys the page mode when the documents page mode is set to full screen. |
void |
setNoPrintScaling(boolean value)
Sets scaling of the print document. |
void |
setNumberOfCOpies(int value)
Specifies the default number of copies to be printed. |
void |
setPickTrayByPdfSize(PickTrayByPdfSize value)
Specifies if the printing tray should be picked based on the size of the PDF document. |
void |
setPrintArea(PageBoundary value)
Sets the print area for the document. |
void |
setPrintClip(PageBoundary value)
Sets the print clip area for the document. |
void |
setPrintPageRange(int[] value)
Sets the default page ranges to be used for printing. |
void |
setRightToLeft(boolean value)
Sets a flag specifying right to left text to predominately use by this document. |
void |
setViewArea(PageBoundary value)
Sets the view area for the document. |
void |
setViewClip(PageBoundary value)
Sets the view clip area for the document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void draw(DocumentWriter writer)
DocumentWriter
object.
writer
- the DocumentWriter object to receive the output.DocumentWriter
public void setHideToolbar(boolean hideToolbar)
hideToolbar
- the boolean value indicating whether to hide
the viewer application's toolbar.public boolean getHideToolbar()
public void setHideMenubar(boolean hideMenubar)
hideMenubar
- the boolean value indicating whether to hide the
viewer application's menubar.public boolean getHideMenubar()
public void setHideWindowUI(boolean hideWindowUI)
hideWindowUI
- the boolean value indicating whether to hide the
user interface elements in the document�s window.public boolean getHideWindowUI()
public void setFitWindow(boolean fitWindow)
fitWindow
- the boolean value to resize the document�s window to
fit the size of the first displayed page.fitpublic boolean getFitWindow()
public void setCenterWindow(boolean centerWindow)
centerWindow
- the boolean value to position the document�s window
in the center of the screen.public boolean getCenterWindow()
public void setDisplayDocTitle(boolean displayDocTitle)
displayDocTitle
- the boolean value to specify the window�s
title bar should display the document title .public boolean getDisplayDocTitle()
public NonFullScreenPageMode getNonFullScreenPageMode()
public void setNonFullScreenPageMode(NonFullScreenPageMode value)
value
- the page mode when the documents page mode is set to full screen.public boolean getRightToLeft()
public void setRightToLeft(boolean value)
value
- the right to left property of the document.public PageBoundary getViewArea()
public void setViewArea(PageBoundary value)
value
- the view area for the document.public PageBoundary getViewClip()
public void setViewClip(PageBoundary value)
value
- the view clip area for the document.public PageBoundary getPrintArea()
public void setPrintArea(PageBoundary value)
value
- the print area for the document.public PageBoundary getPrintClip()
public void setPrintClip(PageBoundary value)
value
- the print clip area for the document.public boolean getNoPrintScaling()
public void setNoPrintScaling(boolean value)
value
- scaling of the print document.public Duplex getDuplex()
public void setDuplex(Duplex value)
value
- the default duplex printing mode for the document.public int[] getPrintPageRange()
public void setPrintPageRange(int[] value)
value
- the default page ranges to be used for printing.public PickTrayByPdfSize getPickTrayByPdfSize()
public void setPickTrayByPdfSize(PickTrayByPdfSize value)
value
- the printing tray should be picked based on the size of the PDF document.public int getNumberOfCOpies()
public void setNumberOfCOpies(int value)
value
- the default number of copies to be printed.
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |