public static class Convert.XODOutputOptions extends Convert.XPSOutputCommonOptions
Modifier and Type | Field and Description |
---|---|
static int |
e_external_xfdf |
static int |
e_flatten |
static int |
e_internal_xfdf
The flag for annotation output options
e_internal_xfdf: include the annotation file in the XOD output.
|
e_op_off, e_op_on, e_op_pdfx_on
Constructor and Description |
---|
XODOutputOptions() |
Modifier and Type | Method and Description |
---|---|
void |
setAnnotationOutput(int annot_output)
Choose how to output annotations.
|
void |
setElementLimit(int element_limit)
If rendering is permitted, sets the maximum number of page elements before that page will be rendered.
|
void |
setEncryptPassword(java.lang.String pass)
Encrypt XOD parts with AES 256 encryption using the supplied password.
|
void |
setExternalParts(boolean generate)
Output XOD as a collection of loose files rather than a zip archive.
|
void |
setFlattenContent(int flatten)
Flatten images and paths into a single background image overlaid with
vector text.
|
void |
setFlattenThreshold(int threshold)
Used to control how precise or relaxed text flattening is.
|
void |
setJPGQuality(int quality)
Specifies the compression quality to use when generating JPEG images.
|
void |
setMaximumImagePixels(int max_pixels)
Specifies the maximum image slice size in pixels.
|
void |
setOpacityMaskWorkaround(boolean opacity)
If rendering is permitted, sets whether pages containing opacity masks should be rendered.
|
void |
setOutputThumbnails(boolean include_thumbs)
Sets whether per page thumbnails should be included in the file.
|
void |
setPreferJPG(boolean prefer_jpg)
Where possible output JPG files rather than PNG.
|
void |
setSilverlightTextWorkaround(boolean workaround)
Outputs rotated text as paths.
|
void |
setThumbnailSize(int size)
The width and height of a square in which thumbnails will
be contained.
|
void |
setThumbnailSize(int regular_size,
int large_size)
The width and height of squares in which thumbnails will
be contained.
|
void |
UseSilverlightFlashCompatible(boolean compatible)
The latest XOD format is only partially supported in Silverlight and Flash
due to various optimizations in the text format and the addition of blend mode support.
|
generateURLLinks, setDPI, setOverprint, setPrintMode, setRenderPages, setThickenLines
public static final int e_internal_xfdf
public static final int e_external_xfdf
public static final int e_flatten
public void setOutputThumbnails(boolean include_thumbs) throws PDFNetException
include_thumbs
- if true thumbnails will be includedPDFNetException
public void setThumbnailSize(int size) throws PDFNetException
Note: A large page is a page larger than twice the area of the standard page size (8.5 X 11).
size
- the maximum dimension (width or height) that thumbnails will have.PDFNetException
public void setThumbnailSize(int regular_size, int large_size) throws PDFNetException
Note: A large page is a page larger than twice the area of the standard page size (8.5 X 11).
regular_size
- the maximum dimension that thumbnails for regular size pages will have.large_size
- the maximum dimension that thumbnails for large pages will have.PDFNetException
public void setElementLimit(int element_limit) throws PDFNetException
element_limit
- the maximum number of elements before a given page will be renderedPDFNetException
public void setOpacityMaskWorkaround(boolean opacity) throws PDFNetException
opacity
- if true pages with opacity masks will be renderedPDFNetException
public void setMaximumImagePixels(int max_pixels) throws PDFNetException
Note: This setting now will no longer reduce the total number of image pixels. Instead a lower value will just produce more slices and vice versa.
Note: Since image compression works better with more pixels a larger max pixels should generally create smaller files.
max_pixels
- the maximum number of pixels an image can havePDFNetException
public void setFlattenThreshold(int threshold) throws PDFNetException
threshold
- the threshold setting to use.PDFNetException
public void setFlattenContent(int flatten) throws PDFNetException
flatten
- select which flattening mode to use.PDFNetException
public void setPreferJPG(boolean prefer_jpg) throws PDFNetException
prefer_jpg
- if true JPG images will be used whenever possible.PDFNetException
public void setJPGQuality(int quality) throws PDFNetException
quality
- the JPEG compression quality, from 0(highest compression) to 100(best quality).PDFNetException
public void setSilverlightTextWorkaround(boolean workaround) throws PDFNetException
workaround
- if true rotated text will be changed to pathsPDFNetException
public void setAnnotationOutput(int annot_output) throws PDFNetException
annot_output
- the annotation output optionPDFNetException
public void setExternalParts(boolean generate) throws PDFNetException
generate
- if true XOD is output as a collection of loose filesPDFNetException
public void setEncryptPassword(java.lang.String pass) throws PDFNetException
pass
- the encryption passwordPDFNetException
public void UseSilverlightFlashCompatible(boolean compatible) throws PDFNetException
compatible
- if true will use the older XOD format which is not compatible with Silverlight/FlashPDFNetException