Class: XPSOutputCommonOptions

PDFNet.Convert. XPSOutputCommonOptions


new XPSOutputCommonOptions()

An object containing options common to ToXps and ToXod functions

Methods


Sets whether links should be generated from urls found in the document. Default is false.
Parameters:
Name Type Description
generate boolean if true links will be generated from urls
Returns:
this object, for call chaining
Type
PDFNet.Convert.XPSOutputCommonOptions

setDPI(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 140.
Parameters:
Name Type Description
dpi number the resolution in Dots Per Inch
Returns:
this object, for call chaining
Type
PDFNet.Convert.XPSOutputCommonOptions

setOverprint(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:
Name Type Description
mode number
PDFNet.Convert.OverprintPreviewMode = {
	e_op_off : 0
	e_op_on : 1
	e_op_pdfx_on : 2
}
e_op_on: always enabled; e_op_off: always disabled; e_op_pdfx_on: enabled for PDF/X files only.
Returns:
this object, for call chaining
Type
PDFNet.Convert.XPSOutputCommonOptions

setPrintMode(print_mode)

Sets whether ToXps should be run in print mode. Default is false.
Parameters:
Name Type Description
print_mode boolean if true print mode is enabled
Returns:
this object, for call chaining
Type
PDFNet.Convert.XPSOutputCommonOptions

setRenderPages(render)

Sets whether rendering of pages should be permitted when necessary to guarantee output. Default is true.
Parameters:
Name Type Description
render boolean if false rendering is not permitted under any circumstance
Returns:
this object, for call chaining
Type
PDFNet.Convert.XPSOutputCommonOptions

setThickenLines(thicken)

Sets whether thin lines should be thickened. Default is true for XPS and false for XOD.
Parameters:
Name Type Description
thicken boolean if true then thin lines will be thickened
Returns:
this object, for call chaining
Type
PDFNet.Convert.XPSOutputCommonOptions