Package org.jpedal.render.output
Class OutputModeOptions
java.lang.Object
org.jpedal.render.output.OutputModeOptions
- Direct Known Subclasses:
ContentOptions
,IDRViewerOptions
The parent abstract class for IDRViewerOptions and ContentOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanValue
(String key, boolean defaultValue) getStringValue
(String key) void
setGenerateSearchFile
(boolean value) Generates search.json.void
setOutputThumbnails
(boolean value) Output thumbnails of pages in /thumbnails/.void
setThumbnailMaxHeight
(int thumbnailMaxHeight) Sets the maximum height of the thumbnails.void
setThumbnailMaxWidth
(int thumbnailMaxWidth) Sets the maximum width of the thumbnails.
-
Constructor Details
-
OutputModeOptions
public OutputModeOptions()
-
-
Method Details
-
getErrors
-
setOutputThumbnails
public void setOutputThumbnails(boolean value) Output thumbnails of pages in /thumbnails/.Possible value:
- true/false
Default: false
Thumnails are always generated if using the IDRViewer with ViewerUI Complete.
Also set with -Dorg.jpedal.pdf2html.outputThumbnails=
- Parameters:
value
- is of type boolean.
-
setThumbnailMaxWidth
public void setThumbnailMaxWidth(int thumbnailMaxWidth) 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
- Parameters:
thumbnailMaxWidth
- the maximum thumbnail width
-
setThumbnailMaxHeight
public void setThumbnailMaxHeight(int thumbnailMaxHeight) 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
- Parameters:
thumbnailMaxHeight
- the maximum thumbnail height
-
setGenerateSearchFile
public void setGenerateSearchFile(boolean value) 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.
-
getStringValue
-
getBooleanValue
-