Foxit PDF SDK  9.1
FSPrintDeviceSettingData Class Reference

Preflight library type: Foxit.
More...

Inheritance diagram for FSPrintDeviceSettingData:

Instance Methods

(void) - dealloc
 
(void *) - getCptr
 
(id) - init
 Constructor and set the default value.
More...
 
(id) - initWithCptr:swigOwnCObject:
 
(id) - initWithDevice_width:device_height:device_margin:orientation:resolution:copies:
 Constructor, with parameters.
More...
 
(id) - initWithSettings:
 Constructor, with another print device setting data object.
More...
 
(void) - set:device_height:device_margin:orientation:resolution:copies:
 Set value.
More...
 

Protected Attributes

BOOL swigCMemOwn
 
void * swigCPtr
 

Properties

unsigned int copies
 The number of copies to be printed. This parameter only has an effect on PostScrip files.
More...
 
int device_height
 The height of the device in pixels.
More...
 
FSRectFdevice_margin
 The page margins of the device.
More...
 
int device_width
 The width of the device in pixels.
More...
 
FSPrintDeviceSettingDataOrientationFlag orientation
 Orientation flag. Please refer to values starting from endlinkandthisshouldbeoneofthesevalues.<br> More...
 
int resolution
 The resolution of the device in pixels per inch.
More...
 

Detailed Description

Preflight library type: Foxit.

Preflight library type: Standards.

Preflight library type: Prepress,Color and Transparency.

This class represents setting data for print device. This would be used in class FSRenderer .

See also
FSRenderer

Method Documentation

◆ dealloc

- (void) dealloc

◆ getCptr

- (void*) getCptr

◆ init

- (id) init

Constructor and set the default value.

By default, the pixel value of an A4 paper is set to 300 dpi (dots per inch).

◆ initWithCptr:swigOwnCObject:

- (id) initWithCptr: (void *)  cptr
swigOwnCObject: (BOOL)  ownCObject 

◆ initWithDevice_width:device_height:device_margin:orientation:resolution:copies:

- (id) initWithDevice_width: (int)  device_width
device_height: (int)  device_height
device_margin: (FSRectF*)  device_margin
orientation: (FSPrintDeviceSettingDataOrientationFlag orientation
resolution: (int)  resolution
copies: (unsigned int)  copies 

Constructor, with parameters.

Parameters
[in]device_widthThe width of the device in pixels.
[in]device_heightThe height of the device in pixels.
[in]device_marginThe page margins of the device. it does not represent a rectangle. It just defines the left margin, bottom margin, right margin and top margin of the device.
[in]orientationOrientation flag. Please refer to values starting from endlinkandthisshouldbeoneofthesevalues.<br>@param[in]resolutionTheresolutionofthedeviceinpixelsperinch.<br>@param[in]copiesThenumberofcopiestobeprinted.ThisparameteronlyhasaneffectonPostScripfiles.<br>

◆ initWithSettings:

- (id) initWithSettings: (FSPrintDeviceSettingData*)  settings

Constructor, with another print device setting data object.

Parameters
[in]settingsAnother print device settings object.

◆ set:device_height:device_margin:orientation:resolution:copies:

- (void) set: (int)  device_width
device_height: (int)  device_height
device_margin: (FSRectF*)  device_margin
orientation: (FSPrintDeviceSettingDataOrientationFlag orientation
resolution: (int)  resolution
copies: (unsigned int)  copies 

Set value.

Parameters
[in]device_widthThe width of the device in pixels.
[in]device_heightThe height of the device in pixels.
[in]device_marginThe page margins of the device. it does not represent a rectangle. It just defines the left margin, bottom margin, right margin and top margin of the device.
[in]orientationOrientation flag. Please refer to values starting from endlinkandthisshouldbeoneofthesevalues.<br>@param[in]resolutionTheresolutionofthedeviceinpixelsperinch.<br>@param[in]copiesThenumberofcopiestobeprinted.ThisparameteronlyhasaneffectonPostScripfiles.<br>@returnNone.<br>

Member Data Documentation

◆ swigCMemOwn

- (BOOL) swigCMemOwn
protected

◆ swigCPtr

- (void*) swigCPtr
protected

Property Documentation

◆ copies

- (unsigned int) copies
readwritenonatomicassign

The number of copies to be printed. This parameter only has an effect on PostScrip files.

◆ device_height

- (int) device_height
readwritenonatomicassign

The height of the device in pixels.

◆ device_margin

- (FSRectF *) device_margin
readwritenonatomiccopy

The page margins of the device.

Note
This value does not represent a rectangle. It just defines the left margin, bottom margin, right margin and top margin of the device. The value should not be negative.

◆ device_width

- (int) device_width
readwritenonatomicassign

The width of the device in pixels.

◆ orientation

- (FSPrintDeviceSettingDataOrientationFlag) orientation
readwritenonatomicassign

Orientation flag. Please refer to values starting from endlinkandthisshouldbeoneofthesevalues.<br>

◆ resolution

- (int) resolution
readwritenonatomicassign

The resolution of the device in pixels per inch.