public class PdfViewOptions extends ViewOptions
Provides options for rendering documents into PDF format.
Constructor and Description |
---|
PdfViewOptions()
Initializes new instance of
PdfViewOptions class. |
PdfViewOptions(CreateFileStream createFileStream)
Initializes new instance of
PdfViewOptions class. |
PdfViewOptions(CreateFileStream createFileStream,
ReleaseFileStream releaseFileStream)
Initializes new instance of
PdfViewOptions class. |
PdfViewOptions(FileStreamFactory fileStreamFactory)
Initializes new instance of
PdfViewOptions class. |
PdfViewOptions(String outputFilePath)
Initializes new instance of
PdfViewOptions class. |
Modifier and Type | Method and Description |
---|---|
int |
getImageHeight()
The height of an output image in pixels.
|
int |
getImageMaxHeight()
Max height of an output image in pixels.
|
int |
getImageMaxWidth()
Max width of an output image in pixels.
|
int |
getImageWidth()
The width of the output image in pixels.
|
int |
getJpgQuality()
The quality of the JPG images contained by output PDF document;
Valid values are between 1 and 100;
Default value is 90.
|
Security |
getSecurity()
The output PDF document security options.
|
void |
setImageHeight(int imageHeight)
The height of an output image in pixels.
|
void |
setImageMaxHeight(int imageMaxHeight)
Max height of an output image in pixels.
|
void |
setImageMaxWidth(int imageMaxWidth)
Max width of an output image in pixels.
|
void |
setImageWidth(int imageWidth)
The width of the output image in pixels.
|
void |
setJpgQuality(int value)
The quality of the JPG images contained by output PDF document;
Valid values are between 1 and 100;
Default value is 90.
|
void |
setSecurity(Security value)
The output PDF document security options.
|
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 PdfViewOptions()
Initializes new instance of PdfViewOptions
class.
PdfViewOptions
with "output.pdf" as file path format for the output file.
The output file will be placed into current working directory of the application.
public PdfViewOptions(CreateFileStream createFileStream)
PdfViewOptions
class.createFileStream
- The method that instantiates stream used to write output file data.public PdfViewOptions(CreateFileStream createFileStream, ReleaseFileStream releaseFileStream)
PdfViewOptions
class.createFileStream
- The method that instantiates stream used to write output file data.releaseFileStream
- The method that releases stream created by method assigned to delegate that passed to createFileStream parameter.public PdfViewOptions(FileStreamFactory fileStreamFactory)
Initializes new instance of PdfViewOptions
class.
fileStreamFactory
- The factory which implements methods for creating and releasing output file stream.IllegalArgumentException
- Thrown when fileStreamFactory
is null.public PdfViewOptions(String outputFilePath)
Initializes new instance of PdfViewOptions
class.
outputFilePath
- The path for output PDF file.IllegalArgumentException
- Thrown when outputFilePath
is null or empty.public int getImageHeight()
public int getImageMaxHeight()
public int getImageMaxWidth()
public int getImageWidth()
public final int getJpgQuality()
The quality of the JPG images contained by output PDF document; Valid values are between 1 and 100; Default value is 90.
public final Security getSecurity()
The output PDF document security options.
public void setImageHeight(int imageHeight)
public void setImageMaxHeight(int imageMaxHeight)
public void setImageMaxWidth(int imageMaxWidth)
public void setImageWidth(int imageWidth)
public final void setJpgQuality(int value)
The quality of the JPG images contained by output PDF document; Valid values are between 1 and 100; Default value is 90.
public final void setSecurity(Security value)
The output PDF document security options.