Class Configuration.OutputFormat
- Enclosing class:
Configuration
A type containing output data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe height of the output in pixels (image formats only).setMultiImage
(Boolean value) Indicates whether the image output will be written into one separate image per page.setPixelDensity
(Integer value) The pixel density of the output (image formats only).setPixelDensityUnit
(Configuration.ResolutionUnit pixelDensityUnit) The unit of the pixel density.setType
(Configuration.OutputType value) The output format.The with of the output in pixels (image formats only).
-
Constructor Details
-
OutputFormat
public OutputFormat()
-
-
Method Details
-
setType
The output format. See
Configuration.OutputType
constants. Defaults toConfiguration.OutputType.PDF
.- Returns:
- The current
Configuration.OutputFormat
instance.
-
setWidth
The with of the output in pixels (image formats only). Values <1 will be computed based on the specified height and the aspect ratio of the input document.
- Returns:
- The current
Configuration.OutputFormat
instance.
-
setHeight
The height of the output in pixels (image formats only). Values <1 will be computed based on the specified width and the aspect ratio of the input document.
- Returns:
- The current
Configuration.OutputFormat
instance.
-
setPixelDensity
The pixel density of the output (image formats only). When neither 'width' nor 'height' is specified this is used to determine the dimensions of the image from the page size. Values <1 default to 96dpi.
See
setPixelDensityUnit(ResolutionUnit)
for the unit of this value (defaults to DPI).- Returns:
- The current
Configuration.OutputFormat
instance.
-
setPixelDensityUnit
public Configuration.OutputFormat setPixelDensityUnit(Configuration.ResolutionUnit pixelDensityUnit) The unit of the pixel density. Defaults to dpi.
- Returns:
- The current
Configuration.OutputFormat
instance.
-
setMultiImage
Indicates whether the image output will be written into one separate image per page.
Defaults to true when using
PDFreactor.convert(Configuration, com.realobjects.pdfreactor.events.OutputStreamProvider)
- Returns:
- The current
Configuration.OutputFormat
instance.
-