public class PdfViewerPreferences extends PdfObjectWrapper<PdfDictionary>
Modifier and Type | Class and Description |
---|---|
static class |
PdfViewerPreferences.PdfViewerPreferencesConstants |
Constructor and Description |
---|
PdfViewerPreferences() |
PdfViewerPreferences(PdfDictionary pdfObject) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
PdfViewerPreferences |
put(PdfName key, PdfObject value) |
PdfViewerPreferences |
setCenterWindow(boolean centerWindow)
This method sets CenterWindow flag to true or false
|
PdfViewerPreferences |
setDirection(PdfViewerPreferences.PdfViewerPreferencesConstants direction)
This method sets predominant reading order of text.
|
PdfViewerPreferences |
setDisplayDocTitle(boolean displayDocTitle)
This method sets DisplayDocTitle flag to true or false
|
PdfViewerPreferences |
setDuplex(PdfViewerPreferences.PdfViewerPreferencesConstants duplex)
This method sets the paper handling option that shall be used when printing the file from the print dialog.
|
PdfViewerPreferences |
setFitWindow(boolean fitWindow)
This method sets FitWindow flag to true or false
|
PdfViewerPreferences |
setHideMenubar(boolean hideMenubar)
This method sets HideMenuBar flag to true or false
|
PdfViewerPreferences |
setHideToolbar(boolean hideToolbar)
This method sets HideToolBar flag to true or false
|
PdfViewerPreferences |
setHideWindowUI(boolean hideWindowUI)
This method sets HideWindowUI flag to true or false
|
PdfViewerPreferences |
setNonFullScreenPageMode(PdfViewerPreferences.PdfViewerPreferencesConstants nonFullScreenPageMode)
This method sets NonFullScreenPageMode property.
|
PdfViewerPreferences |
setNumCopies(int numCopies)
This method sets the number of copies that shall be printed when the print dialog is opened for this file.
|
PdfViewerPreferences |
setPickTrayByPDFSize(boolean pickTrayByPdfSize)
This method sets PickTrayByPDFSize flag to true or false.
|
PdfViewerPreferences |
setPrintArea(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
This method sets the name of the page boundary representing the area of a page that shall be rendered when printing the document.
|
PdfViewerPreferences |
setPrintClip(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
This method sets the name of the page boundary to which the contents of a page shall be clipped when printing the document.
|
PdfViewerPreferences |
setPrintPageRange(int[] printPageRange)
This method sets the page numbers used to initialize the print dialog box when the file is printed.
|
PdfViewerPreferences |
setPrintScaling(PdfViewerPreferences.PdfViewerPreferencesConstants printScaling)
This method sets the page scaling option that shall be selected when a print dialog is displayed for this document.
|
PdfViewerPreferences |
setViewArea(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
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.
|
PdfViewerPreferences |
setViewClip(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
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.
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfViewerPreferences()
public PdfViewerPreferences(PdfDictionary pdfObject)
public PdfViewerPreferences setHideToolbar(boolean hideToolbar)
hideToolbar
-
public PdfViewerPreferences setHideMenubar(boolean hideMenubar)
hideMenubar
-
public PdfViewerPreferences setHideWindowUI(boolean hideWindowUI)
hideWindowUI
-
public PdfViewerPreferences setFitWindow(boolean fitWindow)
fitWindow
-
public PdfViewerPreferences setCenterWindow(boolean centerWindow)
centerWindow
-
public PdfViewerPreferences setDisplayDocTitle(boolean displayDocTitle)
displayDocTitle
-
public PdfViewerPreferences setNonFullScreenPageMode(PdfViewerPreferences.PdfViewerPreferencesConstants nonFullScreenPageMode)
nonFullScreenPageMode
-
public PdfViewerPreferences setDirection(PdfViewerPreferences.PdfViewerPreferencesConstants direction)
direction
-
public PdfViewerPreferences setViewArea(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
pageBoundary
-
public PdfViewerPreferences setViewClip(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
pageBoundary
-
public PdfViewerPreferences setPrintArea(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
pageBoundary
-
public PdfViewerPreferences setPrintClip(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
pageBoundary
-
public PdfViewerPreferences setPrintScaling(PdfViewerPreferences.PdfViewerPreferencesConstants printScaling)
printScaling
-
public PdfViewerPreferences setDuplex(PdfViewerPreferences.PdfViewerPreferencesConstants duplex)
duplex
-
public PdfViewerPreferences setPickTrayByPDFSize(boolean pickTrayByPdfSize)
pickTrayByPdfSize
-
public PdfViewerPreferences setPrintPageRange(int[] printPageRange)
printPageRange
-
public PdfViewerPreferences setNumCopies(int numCopies)
numCopies
-
public PdfViewerPreferences put(PdfName key, PdfObject value)
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2017 iText Group NV. All rights reserved.