Package net.webpdf.wsclient.openapi
Class OperationViewerPreferences
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationViewerPreferences
-
public class OperationViewerPreferences extends Object
Allows to change PDF reader specific settings and dialog defaults. **Important:** Whether these parameters actually have an effect, depends directly on their support in the application used to display the PDF. **Important:** Only few of those settings are actually \"enforced\" and most PDF readers will provide the viewer with the means to circumvent or even alter those settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationViewerPreferences.DuplexEnumSets whether and how pages are to be printed on both sides.static classOperationViewerPreferences.NonFullScreenPageModeEnumKonfiguriert die Anzeige des Dokuments, wenn das Dokument nicht im Vollbildmodus betrachtet wird.static classOperationViewerPreferences.PrintAreaEnumUsed to select the box that should be scaledstatic classOperationViewerPreferences.PrintClipEnumUsed to select the box that should be scaledstatic classOperationViewerPreferences.PrintScalingEnumSelects the page * scaling mode for printouts of the document.static classOperationViewerPreferences.PrintTraySelectionEnumSelects the default setting for how print trays should be selected for printing the pages of the document.static classOperationViewerPreferences.TextDirectionEnumSpecifies the text reading direction for the display program's read aloudstatic classOperationViewerPreferences.ViewAreaEnumUsed to select the box that should be scaledstatic classOperationViewerPreferences.ViewClipEnumUsed to select the box that should be scaled
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CENTER_WINDOWstatic StringJSON_PROPERTY_DISPLAY_DOC_TITLEstatic StringJSON_PROPERTY_DUPLEXstatic StringJSON_PROPERTY_FIT_WINDOWstatic StringJSON_PROPERTY_HIDE_MENU_BARstatic StringJSON_PROPERTY_HIDE_TOOLBARstatic StringJSON_PROPERTY_HIDE_WINDOW_U_Istatic StringJSON_PROPERTY_NON_FULL_SCREEN_PAGE_MODEstatic StringJSON_PROPERTY_NUM_COPIESstatic StringJSON_PROPERTY_PRINT_AREAstatic StringJSON_PROPERTY_PRINT_CLIPstatic StringJSON_PROPERTY_PRINT_PAGE_RANGEstatic StringJSON_PROPERTY_PRINT_SCALINGstatic StringJSON_PROPERTY_PRINT_TRAY_SELECTIONstatic StringJSON_PROPERTY_TEXT_DIRECTIONstatic StringJSON_PROPERTY_VIEW_AREAstatic StringJSON_PROPERTY_VIEW_CLIP
-
Constructor Summary
Constructors Constructor Description OperationViewerPreferences()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_CENTER_WINDOW
public static final String JSON_PROPERTY_CENTER_WINDOW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPLAY_DOC_TITLE
public static final String JSON_PROPERTY_DISPLAY_DOC_TITLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DUPLEX
public static final String JSON_PROPERTY_DUPLEX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FIT_WINDOW
public static final String JSON_PROPERTY_FIT_WINDOW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDE_MENU_BAR
public static final String JSON_PROPERTY_HIDE_MENU_BAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDE_TOOLBAR
public static final String JSON_PROPERTY_HIDE_TOOLBAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDE_WINDOW_U_I
public static final String JSON_PROPERTY_HIDE_WINDOW_U_I
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NON_FULL_SCREEN_PAGE_MODE
public static final String JSON_PROPERTY_NON_FULL_SCREEN_PAGE_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUM_COPIES
public static final String JSON_PROPERTY_NUM_COPIES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINT_AREA
public static final String JSON_PROPERTY_PRINT_AREA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINT_CLIP
public static final String JSON_PROPERTY_PRINT_CLIP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINT_PAGE_RANGE
public static final String JSON_PROPERTY_PRINT_PAGE_RANGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINT_SCALING
public static final String JSON_PROPERTY_PRINT_SCALING
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINT_TRAY_SELECTION
public static final String JSON_PROPERTY_PRINT_TRAY_SELECTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TEXT_DIRECTION
public static final String JSON_PROPERTY_TEXT_DIRECTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VIEW_AREA
public static final String JSON_PROPERTY_VIEW_AREA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VIEW_CLIP
public static final String JSON_PROPERTY_VIEW_CLIP
- See Also:
- Constant Field Values
-
-
Method Detail
-
centerWindow
public OperationViewerPreferences centerWindow(Boolean centerWindow)
-
getCenterWindow
@Nullable public @Nullable Boolean getCenterWindow()
If true, the PDF reader window is moved to the center of the screen.- Returns:
- centerWindow
-
setCenterWindow
public void setCenterWindow(Boolean centerWindow)
-
displayDocTitle
public OperationViewerPreferences displayDocTitle(Boolean displayDocTitle)
-
getDisplayDocTitle
@Nullable public @Nullable Boolean getDisplayDocTitle()
If true, the document title of the document is displayed in the title bar of the PDF reader instead of the file name.- Returns:
- displayDocTitle
-
setDisplayDocTitle
public void setDisplayDocTitle(Boolean displayDocTitle)
-
duplex
public OperationViewerPreferences duplex(OperationViewerPreferences.DuplexEnum duplex)
-
getDuplex
@Nullable public @Nullable OperationViewerPreferences.DuplexEnum getDuplex()
Sets whether and how pages are to be printed on both sides. (This setting is only a dialog default and can be changed by the user at any time). * simplex = Print on one side. * duplexFlipLongEdge = Print on both sides and flip over the longer edge of the page. * duplexFlipShortEdge = Print on both sides and flip over the shorter side edge. * none = Use the default settings of the display program.- Returns:
- duplex
-
setDuplex
public void setDuplex(OperationViewerPreferences.DuplexEnum duplex)
-
fitWindow
public OperationViewerPreferences fitWindow(Boolean fitWindow)
-
getFitWindow
@Nullable public @Nullable Boolean getFitWindow()
If true, the window size of the PDF reader will be tried to fit the first page of the document.- Returns:
- fitWindow
-
setFitWindow
public void setFitWindow(Boolean fitWindow)
-
hideMenuBar
public OperationViewerPreferences hideMenuBar(Boolean hideMenuBar)
-
getHideMenuBar
@Nullable public @Nullable Boolean getHideMenuBar()
If true, the menu bars of the PDF reader are hidden for the display of this document.- Returns:
- hideMenuBar
-
setHideMenuBar
public void setHideMenuBar(Boolean hideMenuBar)
-
hideToolbar
public OperationViewerPreferences hideToolbar(Boolean hideToolbar)
-
getHideToolbar
@Nullable public @Nullable Boolean getHideToolbar()
If true, the toolbars of the PDF reader are hidden for the display of this document.- Returns:
- hideToolbar
-
setHideToolbar
public void setHideToolbar(Boolean hideToolbar)
-
hideWindowUI
public OperationViewerPreferences hideWindowUI(Boolean hideWindowUI)
-
getHideWindowUI
@Nullable public @Nullable Boolean getHideWindowUI()
If true, the scrollbars and other navigation features of the PDF reader are hidden for the display of this document.- Returns:
- hideWindowUI
-
setHideWindowUI
public void setHideWindowUI(Boolean hideWindowUI)
-
nonFullScreenPageMode
public OperationViewerPreferences nonFullScreenPageMode(OperationViewerPreferences.NonFullScreenPageModeEnum nonFullScreenPageMode)
-
getNonFullScreenPageMode
@Nullable public @Nullable OperationViewerPreferences.NonFullScreenPageModeEnum getNonFullScreenPageMode()
Konfiguriert die Anzeige des Dokuments, wenn das Dokument nicht im Vollbildmodus betrachtet wird. Dies konfiguriert in erste Linie welche Navigationsansicht für den Betrachter geöffnet werden soll. * none = Weder die Inhaltsübersicht, noch die Miniaturansicht der Seiten sollen angezeigt werden. * outlines = Die Inhaltsübersicht des Dokuments soll angezeigt werden. * thumbnails = Die Miniaturansicht der Seiten des Dokuments soll angezeigt werden. * optionalContents = Die Layer (Optional Content Groups) des Dokuments sollen angezeigt werden.- Returns:
- nonFullScreenPageMode
-
setNonFullScreenPageMode
public void setNonFullScreenPageMode(OperationViewerPreferences.NonFullScreenPageModeEnum nonFullScreenPageMode)
-
numCopies
public OperationViewerPreferences numCopies(Integer numCopies)
-
getNumCopies
@Nullable public @Nullable Integer getNumCopies()
Specifies how many copies of the document are to be printed. (This setting is only a dialog default and can be changed by the user at any time). minimum: 1- Returns:
- numCopies
-
setNumCopies
public void setNumCopies(Integer numCopies)
-
printArea
public OperationViewerPreferences printArea(OperationViewerPreferences.PrintAreaEnum printArea)
-
getPrintArea
@Nullable public @Nullable OperationViewerPreferences.PrintAreaEnum getPrintArea()
Used to select the box that should be scaled. * media\\_box = The page's physical dimensions. * crop\\_box = The visible (printable) page area. * bleed\\_box = Untrimmed content position on the page (content dimensions plus trim box). * trim\\_box = Trimmed content position on the page (final content dimensions). * art\\_box = Position for special page content (images).- Returns:
- printArea
-
setPrintArea
public void setPrintArea(OperationViewerPreferences.PrintAreaEnum printArea)
-
printClip
public OperationViewerPreferences printClip(OperationViewerPreferences.PrintClipEnum printClip)
-
getPrintClip
@Nullable public @Nullable OperationViewerPreferences.PrintClipEnum getPrintClip()
Used to select the box that should be scaled. * media\\_box = The page's physical dimensions. * crop\\_box = The visible (printable) page area. * bleed\\_box = Untrimmed content position on the page (content dimensions plus trim box). * trim\\_box = Trimmed content position on the page (final content dimensions). * art\\_box = Position for special page content (images).- Returns:
- printClip
-
setPrintClip
public void setPrintClip(OperationViewerPreferences.PrintClipEnum printClip)
-
printPageRange
public OperationViewerPreferences printPageRange(String printPageRange)
-
getPrintPageRange
@Nullable public @Nullable String getPrintPageRange()
Specifies which page(s) to print. For the page number, either a single page, a range of pages or a list (separated by commas) can be specified (e.g. \"1,5-6,9\"). The specification of all pages is done with \"\\*\". (This setting is only a dialog default and can be changed by the user at any time).- Returns:
- printPageRange
-
setPrintPageRange
public void setPrintPageRange(String printPageRange)
-
printScaling
public OperationViewerPreferences printScaling(OperationViewerPreferences.PrintScalingEnum printScaling)
-
getPrintScaling
@Nullable public @Nullable OperationViewerPreferences.PrintScalingEnum getPrintScaling()
Selects the page * scaling mode for printouts of the document. (This setting is only a dialog default and can be changed by the user at any time). * readerDefault = Use the scaling functions provided by the display program. * noPrintScaling = Do no page scaling and print the pages in original size.- Returns:
- printScaling
-
setPrintScaling
public void setPrintScaling(OperationViewerPreferences.PrintScalingEnum printScaling)
-
printTraySelection
public OperationViewerPreferences printTraySelection(OperationViewerPreferences.PrintTraySelectionEnum printTraySelection)
-
getPrintTraySelection
@Nullable public @Nullable OperationViewerPreferences.PrintTraySelectionEnum getPrintTraySelection()
Selects the default setting for how print trays should be selected for printing the pages of the document. (This setting is only a dialog default and can be changed by the user at any time). * readerDefault = Use the default settings of the display program. * byPDFSize = Try to determine the necessary paper size and the used print tray automatically based on the size of the pages of the document.- Returns:
- printTraySelection
-
setPrintTraySelection
public void setPrintTraySelection(OperationViewerPreferences.PrintTraySelectionEnum printTraySelection)
-
textDirection
public OperationViewerPreferences textDirection(OperationViewerPreferences.TextDirectionEnum textDirection)
-
getTextDirection
@Nullable public @Nullable OperationViewerPreferences.TextDirectionEnum getTextDirection()
Specifies the text reading direction for the display program's read aloud. * leftToRight = From left to right. * rightToLeft = From right to left. (Including vertical fonts, such as: Chinese, Japanese, Korean, etc.).- Returns:
- textDirection
-
setTextDirection
public void setTextDirection(OperationViewerPreferences.TextDirectionEnum textDirection)
-
viewArea
public OperationViewerPreferences viewArea(OperationViewerPreferences.ViewAreaEnum viewArea)
-
getViewArea
@Nullable public @Nullable OperationViewerPreferences.ViewAreaEnum getViewArea()
Used to select the box that should be scaled. * media\\_box = The page's physical dimensions. * crop\\_box = The visible (printable) page area. * bleed\\_box = Untrimmed content position on the page (content dimensions plus trim box). * trim\\_box = Trimmed content position on the page (final content dimensions). * art\\_box = Position for special page content (images).- Returns:
- viewArea
-
setViewArea
public void setViewArea(OperationViewerPreferences.ViewAreaEnum viewArea)
-
viewClip
public OperationViewerPreferences viewClip(OperationViewerPreferences.ViewClipEnum viewClip)
-
getViewClip
@Nullable public @Nullable OperationViewerPreferences.ViewClipEnum getViewClip()
Used to select the box that should be scaled. * media\\_box = The page's physical dimensions. * crop\\_box = The visible (printable) page area. * bleed\\_box = Untrimmed content position on the page (content dimensions plus trim box). * trim\\_box = Trimmed content position on the page (final content dimensions). * art\\_box = Position for special page content (images).- Returns:
- viewClip
-
setViewClip
public void setViewClip(OperationViewerPreferences.ViewClipEnum viewClip)
-
-