Foxit PDF SDK
FSPrintDeviceSettingData类 参考

继承自 NSObject .

构造函数

(id) - initWithDevice_width:device_height:device_margin:orientation:resolution:copies:
 带参数的构造函数。
更多...
 
(id) - initWithSettings:
 带另一个打印设备设置数据对象的构造函数。
更多...
 
(void) - set:device_height:device_margin:orientation:resolution:copies:
 设置值。
更多...
 

属性

unsigned int copies
 要打印的份数。此参数仅对PostScript文件有效。

 
int device_height
 设备的高度(以像素为单位)。

 
FSRectFdevice_margin
 设备的页边距。
更多...
 
int device_width
 设备的宽度(以像素为单位)。

 
FSPrintDeviceSettingDataOrientationFlag orientation
 方向标志。请参考从 开始的值, 这应该是其中的一个值。
 
int resolution
 设备的分辨率,以每英寸像素数为单位。

 

详细描述

此类表示打印设备的设置数据。这将在类 FSRenderer 中使用。

参见
FSRenderer

函数文档

◆ 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 

带参数的构造函数。

参数
[in]device_width设备的宽度(以像素为单位)。
[in]device_height设备的高度(以像素为单位)。
[in]device_margin设备的页边距。它不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。
[in]orientation方向标志。请参考从 开始的值, 这应该是其中的一个值。
[in]resolution设备的分辨率,以每英寸像素数为单位。
[in]copies要打印的份数。此参数仅对PostScript文件有效。

◆ initWithSettings:()

- (id) initWithSettings: (FSPrintDeviceSettingData*)  settings

带另一个打印设备设置数据对象的构造函数。

参数
[in]settings另一个打印设备设置对象。

◆ 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 

设置值。

参数
[in]device_width设备的宽度(以像素为单位)。
[in]device_height设备的高度(以像素为单位)。
[in]device_margin设备的页边距。它不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。
[in]orientation方向标志。请参考从 开始的值, 这应该是其中的一个值。
[in]resolution设备的分辨率,以每英寸像素数为单位。
[in]copies要打印的份数。此参数仅对PostScript文件有效。
返回
无。

属性说明

◆ device_margin

- (FSRectF *) device_margin
readwritenonatomicweak

设备的页边距。

注解
此值不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。该值不应为负数。