Class PdfViewerPreferences
public class PdfViewerPreferences : PdfObjectWrapper<PdfDictionary>
- Inheritance
-
PdfViewerPreferences
- Inherited Members
Constructors
PdfViewerPreferences()
public PdfViewerPreferences()
PdfViewerPreferences(PdfDictionary)
public PdfViewerPreferences(PdfDictionary pdfObject)
Parameters
pdfObject
PdfDictionary
Methods
GetEnforce()
PDF 2.0.
public virtual PdfArray GetEnforce()
Returns
- PdfArray
array of names specifying settings to enforce in the PDF processors
Remarks
PDF 2.0. Gets an array of names of Viewer preference settings that shall be enforced by PDF processors and that shall not be overridden by subsequent selections in the application user interface
IsWrappedObjectMustBeIndirect()
protected override bool IsWrappedObjectMustBeIndirect()
Returns
Put(PdfName, PdfObject)
public virtual PdfViewerPreferences Put(PdfName key, PdfObject value)
Parameters
Returns
SetCenterWindow(bool)
This method sets CenterWindow flag to true or false
public virtual PdfViewerPreferences SetCenterWindow(bool centerWindow)
Parameters
centerWindow
boolCenterWindow flag's boolean value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetDirection(PdfViewerPreferencesConstants)
This method sets predominant reading order of text.
public virtual PdfViewerPreferences SetDirection(PdfViewerPreferences.PdfViewerPreferencesConstants direction)
Parameters
direction
PdfViewerPreferences.PdfViewerPreferencesConstantsreading order type value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetDisplayDocTitle(bool)
This method sets DisplayDocTitle flag to true or false
public virtual PdfViewerPreferences SetDisplayDocTitle(bool displayDocTitle)
Parameters
displayDocTitle
boolDisplayDocTitle flag's boolean value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetDuplex(PdfViewerPreferencesConstants)
This method sets the paper handling option that shall be used when printing the file from the print dialog.
public virtual PdfViewerPreferences SetDuplex(PdfViewerPreferences.PdfViewerPreferencesConstants duplex)
Parameters
duplex
PdfViewerPreferences.PdfViewerPreferencesConstantspaper handling option's type value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
Remarks
This method sets the paper handling option that shall be used when printing the file from the print dialog. The following values are valid: Simplex, DuplexFlipShortEdge, DuplexFlipLongEdge.
SetEnforce(PdfArray)
PDF 2.0.
public virtual PdfViewerPreferences SetEnforce(PdfArray enforce)
Parameters
enforce
PdfArrayarray of names specifying settings to enforce in the PDF processors
Returns
- PdfViewerPreferences
this PdfViewerPreferences instance
Remarks
PDF 2.0. Sets an array of names of Viewer preference settings that shall be enforced by PDF processors and that shall not be overridden by subsequent selections in the application user interface
SetFitWindow(bool)
This method sets FitWindow flag to true or false
public virtual PdfViewerPreferences SetFitWindow(bool fitWindow)
Parameters
fitWindow
boolFitWindow flag's boolean value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetHideMenubar(bool)
This method sets HideMenuBar flag to true or false
public virtual PdfViewerPreferences SetHideMenubar(bool hideMenubar)
Parameters
hideMenubar
boolHideMenuBar flag's boolean value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetHideToolbar(bool)
This method sets HideToolBar flag to true or false
public virtual PdfViewerPreferences SetHideToolbar(bool hideToolbar)
Parameters
hideToolbar
boolHideToolBar flag's boolean value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetHideWindowUI(bool)
This method sets HideWindowUI flag to true or false
public virtual PdfViewerPreferences SetHideWindowUI(bool hideWindowUI)
Parameters
hideWindowUI
boolHideWindowUI flag's boolean value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetNonFullScreenPageMode(PdfViewerPreferencesConstants)
This method sets NonFullScreenPageMode property.
public virtual PdfViewerPreferences SetNonFullScreenPageMode(PdfViewerPreferences.PdfViewerPreferencesConstants nonFullScreenPageMode)
Parameters
nonFullScreenPageMode
PdfViewerPreferences.PdfViewerPreferencesConstantsNonFullScreenPageMode property type value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
Remarks
This method sets NonFullScreenPageMode property. Allowed values are UseNone, UseOutlines, useThumbs, UseOC. This entry is meaningful only if the value of the PageMode entry in the Catalog dictionary is FullScreen
SetNumCopies(int)
This method sets the number of copies that shall be printed when the print dialog is opened for this file.
public virtual PdfViewerPreferences SetNumCopies(int numCopies)
Parameters
numCopies
intthe number of copies to print when the print dialog is opened
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetPickTrayByPDFSize(bool)
This method sets PickTrayByPDFSize flag to true or false.
public virtual PdfViewerPreferences SetPickTrayByPDFSize(bool pickTrayByPdfSize)
Parameters
pickTrayByPdfSize
boolPickTrayByPDFSize flag's boolean value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetPrintArea(PdfViewerPreferencesConstants)
This method sets the name of the page boundary representing the area of a page that shall be rendered when printing the document.
public virtual PdfViewerPreferences SetPrintArea(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
Parameters
pageBoundary
PdfViewerPreferences.PdfViewerPreferencesConstantspage boundary type value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
Remarks
This method sets the name of the page boundary representing the area of a page that shall be rendered when printing the document. Deprecated in PDF 2.0.
SetPrintClip(PdfViewerPreferencesConstants)
This method sets the name of the page boundary to which the contents of a page shall be clipped when printing the document.
public virtual PdfViewerPreferences SetPrintClip(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
Parameters
pageBoundary
PdfViewerPreferences.PdfViewerPreferencesConstantspage boundary type value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
Remarks
This method sets the name of the page boundary to which the contents of a page shall be clipped when printing the document. Deprecated in PDF 2.0.
SetPrintPageRange(int[])
This method sets the page numbers used to initialize the print dialog box when the file is printed.
public virtual PdfViewerPreferences SetPrintPageRange(int[] printPageRange)
Parameters
printPageRange
int[]the array of page numbers
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
SetPrintScaling(PdfViewerPreferencesConstants)
This method sets the page scaling option that shall be selected when a print dialog is displayed for this document.
public virtual PdfViewerPreferences SetPrintScaling(PdfViewerPreferences.PdfViewerPreferencesConstants printScaling)
Parameters
printScaling
PdfViewerPreferences.PdfViewerPreferencesConstantspage scaling option's type value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
Remarks
This method sets the page scaling option that shall be selected when a print dialog is displayed for this document. Valid values are None and AppDefault.
SetViewArea(PdfViewerPreferencesConstants)
This method sets the name of the page boundary representing the area of a page that shall be displayed when viewing the document on the screen.
public virtual PdfViewerPreferences SetViewArea(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
Parameters
pageBoundary
PdfViewerPreferences.PdfViewerPreferencesConstantspage boundary type value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
Remarks
This method sets the name of the page boundary representing the area of a page that shall be displayed when viewing the document on the screen. Deprecated in PDF 2.0.
SetViewClip(PdfViewerPreferencesConstants)
This method sets the name of the page boundary to which the contents of a page shall be clipped when viewing the document on the screen.
public virtual PdfViewerPreferences SetViewClip(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
Parameters
pageBoundary
PdfViewerPreferences.PdfViewerPreferencesConstantspage boundary type value
Returns
- PdfViewerPreferences
current instance of PdfViewerPreferences
Remarks
This method sets the name of the page boundary to which the contents of a page shall be clipped when viewing the document on the screen. Deprecated in PDF 2.0.