public class PngViewOptions extends ViewOptions implements IMaxSizeOptions
Provides options for rendering documents into PNG format.
Constructor and Description |
---|
PngViewOptions()
Initializes new instance of
PngViewOptions class. |
PngViewOptions(CreatePageStream createPageStream)
Initializes new instance of
PngViewOptions class. |
PngViewOptions(CreatePageStream createPageStream,
ReleasePageStream releasePageStream)
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 |
getMaxHeight()
Max height of an output image in pixels.
|
int |
getMaxWidth()
Max width 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 |
setMaxHeight(int maxHeight)
Max height of an output image in pixels.
|
void |
setMaxWidth(int maxWidth)
Max width 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, getMailStorageOptions, getOutlookOptions, getPdfOptions, getProjectManagementOptions, getSpreadsheetOptions, getTextOptions, getVisioRenderingOptions, getWordProcessingOptions, isForHtmlView, isForJpgView, isForPngView, isForSinglePage, isRenderComments, isRenderHiddenPages, isRenderNotes, setArchiveOptions, setCadOptions, setDefaultFontName, setEmailOptions, setForHtmlView, setForJpgView, setForPngView, setForSinglePage, setMailStorageOptions, setOutlookOptions, setPdfOptions, setProjectManagementOptions, setRenderComments, setRenderHiddenPages, setRenderNotes, setSpreadsheetOptions, setTextOptions, setVisioRenderingOptions, 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(CreatePageStream createPageStream)
PngViewOptions
class.createPageStream
- The method that instantiates stream used to write output page data.public PngViewOptions(CreatePageStream createPageStream, ReleasePageStream releasePageStream)
createPageStream
- The method that instantiates stream used to write output page data.releasePageStream
- The method that releases stream created by method assigned to delegate that passed to createPageStream parameter.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 int getMaxHeight()
getMaxHeight
in interface IMaxSizeOptions
public int getMaxWidth()
getMaxWidth
in interface IMaxSizeOptions
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 void setMaxHeight(int maxHeight)
setMaxHeight
in interface IMaxSizeOptions
public void setMaxWidth(int maxWidth)
setMaxWidth
in interface IMaxSizeOptions
public final void setWidth(int value)
The width of the output image in pixels.