pdfviewerpreferences-ag凯发旗舰厅



com.spire.pdf
class pdfviewerpreferences

java.lang.object
  extended by com.spire.pdf.pdfviewerpreferences
all implemented interfaces:
ipdfwrapper

public class pdfviewerpreferences
extends java.lang.object
implements ipdfwrapper

defines the way the document is to be presented on the screen or in print.


constructor summary
pdfviewerpreferences()
           
pdfviewerpreferences( catalog)
           
 
method summary
 boolean getcenterwindow()
          a flag specifying whether to position the documents window in the center of the screen.
 boolean getdisplaytitle()
          a flag specifying whether the windows title bar should display the document title taken from the title entry of the document information dictionary.
 boolean getfitwindow()
          a flag specifying whether to resize the documents window to fit the size of the first displayed page.
 boolean gethidemenubar()
          gets the hide viewer applications menu bar when the document is active.
 boolean gethidetoolbar()
          a flag specifying whether to hide the viewer applications tool bars when the document is active.
 boolean gethidewindowui()
          a flag specifying whether to hide user interface elements in the documents window (such as scroll bars and navigation controls), leaving only the documents contents displayed.
 pdfpagelayout getpagelayout()
          a name object specifying the page layout to be used when the document is opened.
 pdfpagemode getpagemode()
          a name object specifying how the document should be displayed when opened.
 printscalingmode getprintscaling()
          gets or set the page scaling option to be selected when a print dialog is displayed for this document.
 void setbookmarkexpandorcollapse(boolean value)
          sets expand or collapse
 void setcenterwindow(boolean value)
          sets the documents window in the center of the screen
 void setdisplaytitle(boolean value)
          sets the flag to specify whether the windows title bar should display the document title taken from the title entry of the document information dictionary.
 void setfitwindow(boolean value)
          sets the flag of the documents window to fit the size of the first displayed page.
 void sethidemenubar(boolean value)
          a flag specifying whether to hide the viewer applications menu bar when the document is active.
 void sethidetoolbar(boolean value)
          sets the hide viewer applications tool bars when the document is active.
 void sethidewindowui(boolean value)
          sets the elements of the hide user interface in the documents window (such as scroll bars and navigation controls), leaving only the documents contents displayed.
 void setpagelayout(pdfpagelayout value)
          sets the value to specify the page layout to be used when the document is opened.
 void setpagemode(pdfpagemode value)
          sets the value to specify how the document should be displayed when opened.
 void setprintscaling(printscalingmode value)
          sets the page scaling option to be selected when a print dialog is displayed for this document.
 
constructor detail

pdfviewerpreferences

public pdfviewerpreferences()

pdfviewerpreferences

public pdfviewerpreferences( catalog)
method detail

getcenterwindow

public boolean getcenterwindow()
a flag specifying whether to position the documents window in the center of the screen.

setcenterwindow

public void setcenterwindow(boolean value)
sets the documents window in the center of the screen
parameters:
value -

setbookmarkexpandorcollapse

public void setbookmarkexpandorcollapse(boolean value)
sets expand or collapse

getdisplaytitle

public boolean getdisplaytitle()
a flag specifying whether the windows title bar should display the document title taken from the title entry of the document information dictionary. if false, the title bar should instead display the name of the pdf file containing the document.

setdisplaytitle

public void setdisplaytitle(boolean value)
sets the flag to specify whether the windows title bar should display the document title taken from the title entry of the document information dictionary. if false, the title bar should instead display the name of the pdf file containing the document.
parameters:
value -

getfitwindow

public boolean getfitwindow()
a flag specifying whether to resize the documents window to fit the size of the first displayed page.

setfitwindow

public void setfitwindow(boolean value)
sets the flag of the documents window to fit the size of the first displayed page.
parameters:
value -

gethidemenubar

public boolean gethidemenubar()
gets the hide viewer applications menu bar when the document is active.

sethidemenubar

public void sethidemenubar(boolean value)
a flag specifying whether to hide the viewer applications menu bar when the document is active.
parameters:
value -

gethidetoolbar

public boolean gethidetoolbar()
a flag specifying whether to hide the viewer applications tool bars when the document is active.

sethidetoolbar

public void sethidetoolbar(boolean value)
sets the hide viewer applications tool bars when the document is active.
parameters:
value -

gethidewindowui

public boolean gethidewindowui()
a flag specifying whether to hide user interface elements in the documents window (such as scroll bars and navigation controls), leaving only the documents contents displayed.

sethidewindowui

public void sethidewindowui(boolean value)
sets the elements of the hide user interface in the documents window (such as scroll bars and navigation controls), leaving only the documents contents displayed.
parameters:
value -

getpagemode

public pdfpagemode getpagemode()
a name object specifying how the document should be displayed when opened.

setpagemode

public void setpagemode(pdfpagemode value)
sets the value to specify how the document should be displayed when opened.
parameters:
value -

getpagelayout

public pdfpagelayout getpagelayout()
a name object specifying the page layout to be used when the document is opened.

setpagelayout

public void setpagelayout(pdfpagelayout value)
sets the value to specify the page layout to be used when the document is opened.
parameters:
value -

getprintscaling

public printscalingmode getprintscaling()
gets or set the page scaling option to be selected when a print dialog is displayed for this document.

setprintscaling

public void setprintscaling(printscalingmode value)
sets the page scaling option to be selected when a print dialog is displayed for this document.
parameters:
value -


网站地图