public class PngViewOptions extends ViewOptions
Provides options for rendering documents into PNG format.
Constructor and Description |
---|
PngViewOptions()
Initializes new instance of
PngViewOptions class. |
PngViewOptions(PageStreamFactory pageStreamFactory)
Initializes new instance of
PngViewOptions class. |
PngViewOptions(String filePathFormat)
Initializes new instance of
PngViewOptions class. |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
The height of an output image in pixels.
|
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 |
setWidth(int value)
The width of the output image in pixels.
|
getPageRotations, getWatermark, rotatePage, setWatermark
getArchiveOptions, getCadOptions, getDefaultFontName, getEmailOptions, getLotusNotesOptions, getOutlookOptions, getPdfOptions, getProjectManagementOptions, getSpreadsheetOptions, getWordProcessingOptions, isForHtmlView, isRenderComments, isRenderHiddenPages, isRenderNotes, setArchiveOptions, setCadOptions, setDefaultFontName, setEmailOptions, setForHtmlView, setLotusNotesOptions, setOutlookOptions, setPdfOptions, setProjectManagementOptions, setRenderComments, setRenderHiddenPages, setRenderNotes, setSpreadsheetOptions, setWordProcessingOptions
public PngViewOptions()
Initializes new instance of PngViewOptions
class.
PngViewOptions
with "p_{0}.png" as file path format for the output files.
The output files will be placed into current working directory of the application.
public PngViewOptions(PageStreamFactory pageStreamFactory)
Initializes new instance of PngViewOptions
class.
pageStreamFactory
- The factory which implements methods for creating and releasing output page stream.IllegalArgumentException
- Thrown when pageStreamFactory
is null.public PngViewOptions(String filePathFormat)
Initializes new instance of PngViewOptions
class.
filePathFormat
- The file path format e.g. 'page_{0}.png'.IllegalArgumentException
- Thrown when filePathFormat
is null or empty.public final int getHeight()
The height of an output image in pixels.
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 setWidth(int value)
The width of the output image in pixels.