Summary: Constants | Ctors | Methods | Inherited Methods | [Expand All]
public static class

# Convert.XPSOutputCommonOptions

extends Object

java.lang.Object
↳ | com.pdftron.pdf.Convert.XPSOutputCommonOptions

Known Direct Subclasses Convert.XODOutputOptions, Convert.XPSOutputOptions
Convert.XODOutputOptions | A class containing options for ToXod functions
Convert.XPSOutputOptions | A class containing options for ToXps functions

## Class Overview

A class containing options common to ToXps and ToXod functions

## Summary

Constants
int | e_op_off |
int | e_op_on |
int | e_op_pdfx_on |

Public Constructors
| XPSOutputCommonOptions() Creates an XPSOutputCommonOptions object with default settings

Public Methods
void | generateURLLinks(boolean generate) Sets whether links should be generated from urls found in the document.
void | setDPI(int dpi) The output resolution, from 1 to 1000, in Dots Per Inch (DPI) at which to render elements which cannot be directly converted.
void | setOverprint(int mode) Enable or disable support for overprint and overprint simulation.
void | setPrintMode(boolean print_mode) Sets whether ToXps should be run in print mode.
void | setRenderPages(boolean render) Sets whether rendering of pages should be permitted when necessary to guarantee output.
void | setThickenLines(boolean thicken) Sets whether thin lines should be thickened.

[Expand] Inherited Methods
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Constants

#### public static final int e_op_off

Constant Value: 0 (0x00000000)

#### public static final int e_op_on

Constant Value: 1 (0x00000001)

#### public static final int e_op_pdfx_on

Constant Value: 2 (0x00000002)

## Public Constructors

#### public XPSOutputCommonOptions ()

Creates an XPSOutputCommonOptions object with default settings

## Public Methods

#### public void generateURLLinks (boolean generate)

Sets whether links should be generated from urls found in the document. Default is false.

##### Parameters

generate | if true links will be generated from urls

##### Throws

PDFNetException |

#### public void setDPI (int dpi)

The output resolution, from 1 to 1000, in Dots Per Inch (DPI) at which to render elements which cannot be directly converted. Default is 150.

##### Parameters

dpi | the resolution in Dots Per Inch

##### Throws

PDFNetException |

#### public void setOverprint (int mode)

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.

##### Parameters

mode | e_op_on: always enabled; e_op_off: always disabled; e_op_pdfx_on: enabled for PDF/X files only.

##### Throws

PDFNetException |

#### public void setPrintMode (boolean print_mode)

Sets whether ToXps should be run in print mode. Default is false.

##### Parameters

print_mode | if true print mode is enabled

##### Throws

PDFNetException |

#### public void setRenderPages (boolean render)

Sets whether rendering of pages should be permitted when necessary to guarantee output. Default is true.

##### Parameters

render | if false rendering is not permitted under any circumstance

##### Throws

PDFNetException |

#### public void setThickenLines (boolean thicken)

Sets whether thin lines should be thickened. Default is true for XPS and false for XOD.

##### Parameters

thicken | if true then thin lines will be thickened

##### Throws

PDFNetException |