public class JpgViewOptions extends ViewOptions
Provides options for rendering documents into JPG format.
Constructor and Description |
---|
JpgViewOptions()
Initializes new instance of
JpgViewOptions class. |
JpgViewOptions(PageStreamFactory pageStreamFactory)
Initializes new instance of
JpgViewOptions class. |
JpgViewOptions(String filePathFormat)
Initializes new instance of
JpgViewOptions class. |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
The height of an output image in pixels.
|
PageStreamFactory |
getPageStreamFactory() |
byte |
getQuality()
Quality of the output image;
Valid values are between 1 and 100;
Default value is 90.
|
int |
getWidth()
The width of the output image in pixels.
|
boolean |
isExtractText()
Enables text extraction.
|
void |
setExtractText(boolean value)
Enables text extraction.
|
void |
setHeight(int value)
The height of an output image in pixels.
|
void |
setQuality(byte value)
Quality of the output image;
Valid values are between 1 and 100;
Default value is 90.
|
void |
setWidth(int value)
The width of the output image in pixels.
|
getPageRotations, getWatermark, rotatePage, setWatermark
getArchiveOptions, getCadOptions, getDefaultFontName, getEmailOptions, getOutlookOptions, getPdfOptions, getProjectManagementOptions, getSpreadsheetOptions, getWordProcessingOptions, isForHtmlView, isRenderComments, isRenderHiddenPages, isRenderNotes, setArchiveOptions, setCadOptions, setDefaultFontName, setEmailOptions, setForHtmlView, setOutlookOptions, setPdfOptions, setProjectManagementOptions, setRenderComments, setRenderHiddenPages, setRenderNotes, setSpreadsheetOptions, setWordProcessingOptions
public JpgViewOptions()
Initializes new instance of JpgViewOptions
class.
JpgViewOptions
with "p_{0}.jpg" as file path format for the output files.
The output files will be placed into current working directory of the application.
public JpgViewOptions(PageStreamFactory pageStreamFactory)
Initializes new instance of JpgViewOptions
class.
pageStreamFactory
- The factory which implements methods for creating and releasing output page stream.IllegalArgumentException
- Thrown when pageStreamFactory
is null.public JpgViewOptions(String filePathFormat)
Initializes new instance of JpgViewOptions
class.
filePathFormat
- The file path format e.g. 'page_{0}.jpg'.IllegalArgumentException
- Thrown when filePathFormat
is null or empty.public final int getHeight()
The height of an output image in pixels.
public final PageStreamFactory getPageStreamFactory()
public final byte getQuality()
Quality of the output image; Valid values are between 1 and 100; Default value is 90.
public final int getWidth()
The width of the output image in pixels.
public final boolean isExtractText()
Enables text extraction.
public final void setExtractText(boolean value)
Enables text extraction.
public final void setHeight(int value)
The height of an output image in pixels.
public final void setQuality(byte value)
Quality of the output image; Valid values are between 1 and 100; Default value is 90.
public final void setWidth(int value)
The width of the output image in pixels.