Class OutputModeOptions
- Direct Known Subclasses:
ContentOptions
,FormViewerOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanValue
(String key, boolean defaultValue) getStringValue
(String key) setGenerateSearchFile
(boolean value) Generates search.json.setOutputThumbnails
(boolean value) Output thumbnails of pages in /thumbnails/.setThumbnailMaxHeight
(int thumbnailMaxHeight) Sets the maximum height of the thumbnails.setThumbnailMaxWidth
(int thumbnailMaxWidth) Sets the maximum width of the thumbnails.
-
Constructor Details
-
OutputModeOptions
public OutputModeOptions()
-
-
Method Details
-
getErrors
-
setOutputThumbnails
Output thumbnails of pages in /thumbnails/.Possible value:
- true/false
Default: false
Thumbnails are always generated if using the IDRViewer with ViewerUI Complete.
Also set with
-Dorg.jpedal.pdf2html.outputThumbnails=
- Parameters:
value
- is of type boolean.- Returns:
- the OutputModeOptions Object.
-
setThumbnailMaxWidth
Sets the maximum width of the thumbnails. Can be used in conjunction with setThumbnailMaxHeight.If both a width and height are given then the generated thumbnails will fit within the bounds given, maintaining the aspect ratio of the original page.
If only a width or height is given then the size of the generated thumbnails will match the bound given, again maintaining the aspect ratio of the original page.
Possible values:
- Any positive integer
-Dorg.jpedal.pdf2html.thumbnailMaxWidth=
- Parameters:
thumbnailMaxWidth
- the maximum thumbnail width- Returns:
- the OutputModeOptions object.
- Since:
- 2022.03
-
setThumbnailMaxHeight
Sets the maximum height of the thumbnails. Can be used in conjunction with setThumbnailMaxWidth.If both a width and height are given then the generated thumbnails will fit within the bounds given, maintaining the aspect ratio of the original page.
If only a width or height is given then the size of the generated thumbnails will match the bound given, again maintaining the aspect ratio of the original page.
Possible values:
- Any positive integer
-Dorg.jpedal.pdf2html.thumbnailMaxHeight=
- Parameters:
thumbnailMaxHeight
- the maximum thumbnail height- Returns:
- the OutputModeOptions object.
- Since:
- 2022.03
-
setGenerateSearchFile
Generates search.json. This file contains an array (one element per page) containing the textual content from each page. It is used by idrviewer.search.js for page search.search.json is always generated in the IDRViewer Complete UI. Search is not supported as standard in other IDRViewer UI modes.
Possible value:
- true/false
Also set with
-Dorg.jpedal.pdf2html.generateSearchFile=
- Parameters:
value
- is of type boolean.- Returns:
- the OutputModeOptions object.
-
getStringValue
-
getBooleanValue
-