java.lang.Object | |
↳ | com.pdftron.pdf.Convert.TiffOutputOptions |
A class containing options common to ToTiff functions
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | e_art | The Constant e_art. | |||||||||
int | e_bleed | The Constant e_bleed. | |||||||||
int | e_crop | The Constant e_crop. | |||||||||
int | e_media | The Constant e_media. | |||||||||
int | e_op_off | ||||||||||
int | e_op_on | ||||||||||
int | e_op_pdfx_on | ||||||||||
int | e_trim | The Constant e_trim. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TiffOutputOptions()
Creates an TiffOutputOptions object with default settings
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
setAnnots(boolean enable)
Enables or disables drawing of
annotations.
| ||||||||||
void |
setBox(int type)
Specifies the page box/region to rasterize.
| ||||||||||
void |
setCMYK(boolean enable)
Render and export the image in CMYK mode.
| ||||||||||
void |
setDPI(double dpi)
The output resolution, from 1 to 1000, in Dots Per Inch (DPI).
| ||||||||||
void |
setDither(boolean enable)
Enables dithering when the image is
exported in palletized or monochrome mode.
| ||||||||||
void |
setGamma(double gamma)
Sets the gamma factor used for anti-aliased
rendering.
| ||||||||||
void |
setGray(boolean enable)
Render and export the image in grayscale
mode.
| ||||||||||
void |
setHRes(int hres)
Sets the width of the output image, in pixels.
| ||||||||||
void |
setMono(boolean enable)
Export the rendered image as 1 bit per
pixel (monochrome) image.
| ||||||||||
void |
setOverprint(int mode)
Enable or disable support for overprint and overprint simulation.
| ||||||||||
void |
setPages(String page_desc)
Specifies the list of pages to convert.
| ||||||||||
void |
setPalettized(boolean enable)
Enabled the output of palettized TIFFs.
| ||||||||||
void |
setPrintmode(boolean enable)
Renders annotations in the print mode.
| ||||||||||
void |
setRotate(double x1, double y1, double x2, double y2)
User definable clip box.
| ||||||||||
void |
setRotate(int rotate)
Rotates all pages by a given number of
degrees counterclockwise.
| ||||||||||
void |
setSmooth(boolean enable)
Enables or disables image
smoothing (default: enabled).
| ||||||||||
void |
setTransparentPage(boolean enable)
Sets the page color to transparent.
| ||||||||||
void |
setVRes(int vres)
Sets the height of the output image, in pixels.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The Constant e_art.
The Constant e_bleed.
The Constant e_crop.
The Constant e_media.
The Constant e_trim.
Creates an TiffOutputOptions object with default settings
Enables or disables drawing of annotations. This option is enabled by default.
enable | if false then annotations will not be drawn |
---|
PDFNetException |
---|
Specifies the page box/region to rasterize. Possible values are media, crop, trim, bleed, and art. By default, page crop region will be rasterized.
type | The type cf box to use |
---|
PDFNetException |
---|
Render and export the image in CMYK mode. By default, the image is rendered and exported in RGB color space.
enable | if true then cmyk will be enabled |
---|
PDFNetException |
---|
The output resolution, from 1 to 1000, in Dots Per Inch (DPI). The higher the DPI, the larger the image. Resolutions larger than 1000 DPI can be achieved by rendering image in tiles or stripes. The default resolution is 92 DPI.
dpi | specifies the output DPI |
---|
PDFNetException |
---|
Enables dithering when the image is exported in palletized or monochrome mode. This option is disabled by default.
enable | if true then dithering will be enabled |
---|
PDFNetException |
---|
Sets the gamma factor used for anti-aliased rendering. Typical values are in the range from 0.1 to 3. Gamma correction can be used to improve the quality of anti-aliased image output and can (to some extent) decrease the appearance common anti-aliasing artifacts (such as pixel width lines between polygons). The default gamma is 0.
gamma | specifies the gamma factor |
---|
PDFNetException |
---|
Render and export the image in grayscale mode. Sets pixel format to 8 bits per pixel grayscale. By default, the image is rendered and exported in RGB color space.
enable | if true then grayscale will be enabled |
---|
PDFNetException |
---|
Sets the width of the output image, in pixels.
hres | specifies the width |
---|
PDFNetException |
---|
Export the rendered image as 1 bit per pixel (monochrome) image. The image will be compressed using G4 CCITT compression algorithm. By default, the image is not dithered. To enable dithering use 'SetDither' option. This option is disabled by default.
enable | if true then monochrome will be enabled |
---|
PDFNetException |
---|
Enable or disable support for overprint and overprint simulation. Overprint is a device dependent feature and the results will vary depending on the output color space and supported colorants (i.e. CMYK, CMYK+spot, RGB, etc). Default is e_op_pdfx_on.
mode | e_op_on: always enabled; e_op_off: always disabled; e_op_pdfx_on: enabled for PDF/X files only. |
---|
PDFNetException |
---|
Specifies the list of pages to convert. "1" for only the first page. "1-5" for pages 1 to 5. "1, 5, 7" for pages 1, 5, and 7. "odd" for all odd pages. "even" for all even pages. By default, all pages are converted.
page_desc | A description of the pages to be converted. |
---|
PDFNetException |
---|
Enabled the output of palettized TIFFs. This option is disabled by default.
enable | if true then the TIFF will be palettized |
---|
PDFNetException |
---|
Renders annotations in the print mode. This option can be used to render 'Print Only' annotations and to hide 'Screen Only' annotations. This option is disabled by default.
enable | if true then print mode will be enabled |
---|
PDFNetException |
---|
User definable clip box. By default, the clip region is identical to current page 'box'.
x1 | The value of the x1 coordinate |
---|---|
y1 | The value of the y1 coordinate |
x2 | The value of the x2 coordinate |
y2 | The value of the y2 coordinate |
PDFNetException |
---|
Rotates all pages by a given number of degrees counterclockwise. The allowed values are 0, 90, 180, and 270. The default value is 0.
rotate | The type cf box to use |
---|
PDFNetException |
---|
Enables or disables image smoothing (default: enabled).
enable | if false then images will not be smoothed |
---|
PDFNetException |
---|
Sets the page color to transparent. By default, Convert assumes that the page is drawn directly on an opaque white surface. Some applications may need to draw the page on a different backdrop. In this case any pixels that are not covered during rendering will be transparent. This option is disabled by default.
enable | if true then transparent page will be enabled |
---|
PDFNetException |
---|
Sets the height of the output image, in pixels.
vres | specifies the width |
---|
PDFNetException |
---|