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 |
---|---|
PdfArray |
getEnforce()
PDF 2.0.
|
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 |
setEnforce(PdfArray enforce)
PDF 2.0.
|
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
- HideToolBar flag's boolean value
PdfViewerPreferences
public PdfViewerPreferences setHideMenubar(boolean hideMenubar)
hideMenubar
- HideMenuBar flag's boolean value
PdfViewerPreferences
public PdfViewerPreferences setHideWindowUI(boolean hideWindowUI)
hideWindowUI
- HideWindowUI flag's boolean value
PdfViewerPreferences
public PdfViewerPreferences setFitWindow(boolean fitWindow)
fitWindow
- FitWindow flag's boolean value
PdfViewerPreferences
public PdfViewerPreferences setCenterWindow(boolean centerWindow)
centerWindow
- CenterWindow flag's boolean value
PdfViewerPreferences
public PdfViewerPreferences setDisplayDocTitle(boolean displayDocTitle)
displayDocTitle
- DisplayDocTitle flag's boolean value
PdfViewerPreferences
public PdfViewerPreferences setNonFullScreenPageMode(PdfViewerPreferences.PdfViewerPreferencesConstants nonFullScreenPageMode)
nonFullScreenPageMode
- NonFullScreenPageMode property type value
PdfViewerPreferences
public PdfViewerPreferences setDirection(PdfViewerPreferences.PdfViewerPreferencesConstants direction)
direction
- reading order type value
PdfViewerPreferences
public PdfViewerPreferences setViewArea(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
pageBoundary
- page boundary type value
PdfViewerPreferences
public PdfViewerPreferences setViewClip(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
pageBoundary
- page boundary type value
PdfViewerPreferences
public PdfViewerPreferences setPrintArea(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
pageBoundary
- page boundary type value
PdfViewerPreferences
public PdfViewerPreferences setPrintClip(PdfViewerPreferences.PdfViewerPreferencesConstants pageBoundary)
pageBoundary
- page boundary type value
PdfViewerPreferences
public PdfViewerPreferences setPrintScaling(PdfViewerPreferences.PdfViewerPreferencesConstants printScaling)
printScaling
- page scaling option's type value
PdfViewerPreferences
public PdfViewerPreferences setDuplex(PdfViewerPreferences.PdfViewerPreferencesConstants duplex)
duplex
- paper handling option's type value
PdfViewerPreferences
public PdfViewerPreferences setPickTrayByPDFSize(boolean pickTrayByPdfSize)
pickTrayByPdfSize
- PickTrayByPDFSize flag's boolean value
PdfViewerPreferences
public PdfViewerPreferences setPrintPageRange(int[] printPageRange)
printPageRange
- the array of page numbers
PdfViewerPreferences
public PdfViewerPreferences setNumCopies(int numCopies)
numCopies
- the number of copies to print when the print dialog is opened
PdfViewerPreferences
public PdfViewerPreferences setEnforce(PdfArray enforce)
enforce
- array of names specifying settings to enforce in the PDF processors
PdfViewerPreferences
instance
public PdfArray getEnforce()
public PdfViewerPreferences put(PdfName key, PdfObject value)
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2021 iText Group NV. All rights reserved.