PTXPSOutputCommonOptions
@interface PTXPSOutputCommonOptions : NSObject
A class containing options common to ToXps and ToXod functions
-
Creates an XPSConvertOptions object with default settings
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Sets whether ToXps should be run in print mode. Default is false.
Declaration
Objective-C
- (void)SetPrintMode:(BOOL)print_mode;
Swift
func setPrintMode(_ print_mode: Bool)
Parameters
print_mode
if true print mode is enabled
-
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.
Declaration
Objective-C
- (void)SetDPI:(unsigned int)dpi;
Swift
func setDPI(_ dpi: UInt32)
Parameters
dpi
the resolution in Dots Per Inch
-
Sets whether rendering of pages should be permitted when necessary to guarantee output. Default is true.
Declaration
Objective-C
- (void)SetRenderPages:(BOOL)render;
Swift
func setRenderPages(_ render: Bool)
Parameters
render
if false rendering is not permitted under any circumstance
-
Sets whether thin lines should be thickened. Default is true for XPS and false for XOD.
Declaration
Objective-C
- (void)SetThickenLines:(BOOL)thicken;
Swift
func setThickenLines(_ thicken: Bool)
Parameters
thicken
if true then thin lines will be thickened
-
Sets whether links should be generated from urls found in the document. Default is false.
Declaration
Objective-C
- (void)GenerateURLLinks:(BOOL)generate;
Swift
func generateURLLinks(_ generate: Bool)
Parameters
generate
if true links will be generated from urls
-
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.
Declaration
Objective-C
- (void)SetOverprint:(PTXPSOverprintPreviewMode)mode;
Swift
func setOverprint(_ mode: PTXPSOverprintPreviewMode)
Parameters
mode
e_op_on: always enabled; e_op_off: always disabled; e_op_pdfx_on: enabled for PDF/X files only.
-
Undocumented
Declaration
Objective-C
- (void)setM_obj: (void *)value;
Swift
func setM_obj(_ value: UnsafeMutableRawPointer!)
-
Undocumented
Declaration
Objective-C
- (void *)getM_obj;
Swift
func getM_obj() -> UnsafeMutableRawPointer!