public class RTFRenderer extends FormatProducer implements LayoutedPagesConsumer, java.io.Serializable
PDFRenderer
, SVGRenderer
,
PostscriptRenderer
, Printer
or ImageRenderer
.
Modifier and Type | Class and Description |
---|---|
static class |
RTFRenderer.ImageFormat |
static class |
RTFRenderer.OutputFormat |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
legalCopyright |
Modifier | Constructor and Description |
---|---|
protected |
RTFRenderer()
Creates a RTFRenderer object.
|
|
RTFRenderer(FormatHandler handler)
Creates a RTFRenderer object that outputs to the given
handler object.
|
Modifier and Type | Method and Description |
---|---|
RTFRenderer.OutputFormat |
getOutputFormat() |
void |
setFromPage(java.lang.Integer fromPage)
Sets the first page to be included in the document.
|
void |
setImageFormat(RTFRenderer.ImageFormat imageFormat)
Sets the image format of images contained in the document
as determined by the
imageFormat argument. |
void |
setMaximumImageResolution(java.lang.Integer maximumImageResolutionInDPI)
Sets the maximum DPI of images included in the document.
|
void |
setMemoryThreshold(java.lang.Integer memoryThresholdInBytes)
Sets the threshold for disk swapping.
|
void |
setOutputFormat(RTFRenderer.OutputFormat outputFormat)
Sets the output format as determined by the
outputFormat
argument. |
void |
setToPage(java.lang.Integer toPage)
Sets the last page (inclusive) to be included in the document.
|
setHandler
public static final java.lang.String legalCopyright
protected RTFRenderer()
public RTFRenderer(FormatHandler handler)
handler
- A FormatHandlerpublic void setFromPage(java.lang.Integer fromPage)
fromPage
- an integer greater than zero and less than or equal to
toPage.java.lang.IllegalArgumentException
- if the above condition
is violated.public void setToPage(java.lang.Integer toPage)
toPage
- an integer greater than zero and greater than or equal
to fromPage.java.lang.IllegalArgumentException
- if the above condition
is violated.public void setMaximumImageResolution(java.lang.Integer maximumImageResolutionInDPI)
maximumImageResolutionInDPI
- the maximum resolution of images included in the documentjava.lang.IllegalArgumentException
- if maximumImageResolutionInDPI
is not greater
than 0
.public void setImageFormat(RTFRenderer.ImageFormat imageFormat)
imageFormat
argument.imageFormat
- one of the following values:
public void setMemoryThreshold(java.lang.Integer memoryThresholdInBytes)
memoryThresholdInBytes
- documents exceeding his value will be processed from disk.java.lang.IllegalArgumentException
- if memoryThresholdInBytes
is not greater
than 0
.public RTFRenderer.OutputFormat getOutputFormat()
public void setOutputFormat(RTFRenderer.OutputFormat outputFormat)
outputFormat
argument.outputFormat
- one of the following values: