Foxit PDF SDK
com.foxit.sdk.common.PrintDeviceSettingData类 参考

Public 成员函数

 PrintDeviceSettingData (int device_width, int device_height, RectF device_margin, int orientation, int resolution, int copies)
 带参数的构造函数。 更多...
 
 PrintDeviceSettingData ()
 构造函数并设置默认值。 更多...
 
 PrintDeviceSettingData (PrintDeviceSettingData settings)
 带另一个打印设备设置数据对象的构造函数。 更多...
 
synchronized void delete ()
 直接清除C++相关资源。 更多...
 
int getCopies ()
 Get 要打印的份数。此参数仅对PostScript文件有效。 更多...
 
int getDevice_height ()
 Get 设备的高度(以像素为单位)。 更多...
 
RectF getDevice_margin ()
 Get 设备的页边距。 更多...
 
int getDevice_width ()
 Get 设备的宽度(以像素为单位)。 更多...
 
int getOrientation ()
 Get 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。 更多...
 
int getResolution ()
 Get 设备的分辨率,以每英寸像素数为单位。 更多...
 
void set (int device_width, int device_height, RectF device_margin, int orientation, int resolution, int copies)
 设置值。 更多...
 
void setCopies (int value)
 Set 要打印的份数。此参数仅对PostScript文件有效。 更多...
 
void setDevice_height (int value)
 Set 设备的高度(以像素为单位)。 更多...
 
void setDevice_margin (RectF value)
 Set 设备的页边距。 更多...
 
void setDevice_width (int value)
 Set 设备的宽度(以像素为单位)。 更多...
 
void setOrientation (int value)
 Set 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。 更多...
 
void setResolution (int value)
 Set 设备的分辨率,以每英寸像素数为单位。 更多...
 

静态 Public 属性

static final int e_Landscape = 1
 打印的横向方向。
 
static final int e_Portrait = 0
 打印的纵向方向。
 

详细描述

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

参见
Renderer

构造及析构函数说明

◆ PrintDeviceSettingData() [1/3]

com.foxit.sdk.common.PrintDeviceSettingData.PrintDeviceSettingData ( int  device_width,
int  device_height,
RectF  device_margin,
int  orientation,
int  resolution,
int  copies 
)

带参数的构造函数。

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

◆ PrintDeviceSettingData() [2/3]

com.foxit.sdk.common.PrintDeviceSettingData.PrintDeviceSettingData ( )

构造函数并设置默认值。

默认情况下,A4纸的像素值设置为300 dpi(每英寸点数)。

◆ PrintDeviceSettingData() [3/3]

com.foxit.sdk.common.PrintDeviceSettingData.PrintDeviceSettingData ( PrintDeviceSettingData  settings)

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

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

成员函数说明

◆ delete()

synchronized void com.foxit.sdk.common.PrintDeviceSettingData.delete ( )

直接清除C++相关资源。

返回
无。
注解
一旦这个接口被调用,这个对象将不能再被使用。

◆ getCopies()

com.foxit.sdk.common.PrintDeviceSettingData.getCopies ( )

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

返回
要打印的份数。此参数仅对PostScript文件有效。

◆ getDevice_height()

com.foxit.sdk.common.PrintDeviceSettingData.getDevice_height ( )

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

返回
设备的高度(以像素为单位)。

◆ getDevice_margin()

com.foxit.sdk.common.PrintDeviceSettingData.getDevice_margin ( )

Get 设备的页边距。

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

◆ getDevice_width()

com.foxit.sdk.common.PrintDeviceSettingData.getDevice_width ( )

Get 设备的宽度(以像素为单位)。

返回
设备的宽度(以像素为单位)。

◆ getOrientation()

com.foxit.sdk.common.PrintDeviceSettingData.getOrientation ( )

Get 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。

返回
方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。

◆ getResolution()

com.foxit.sdk.common.PrintDeviceSettingData.getResolution ( )

Get 设备的分辨率,以每英寸像素数为单位。

返回
设备的分辨率,以每英寸像素数为单位。

◆ set()

void com.foxit.sdk.common.PrintDeviceSettingData.set ( int  device_width,
int  device_height,
RectF  device_margin,
int  orientation,
int  resolution,
int  copies 
)

设置值。

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

◆ setCopies()

com.foxit.sdk.common.PrintDeviceSettingData.setCopies ( int  value)

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

参数
[in]value要打印的份数。此参数仅对PostScript文件有效。
返回
None.

◆ setDevice_height()

com.foxit.sdk.common.PrintDeviceSettingData.setDevice_height ( int  value)

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

参数
[in]value设备的高度(以像素为单位)。
返回
None.

◆ setDevice_margin()

com.foxit.sdk.common.PrintDeviceSettingData.setDevice_margin ( RectF  value)

Set 设备的页边距。

注解
此值不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。该值不应为负数。
参数
[in]value设备的页边距。
返回
None.

◆ setDevice_width()

com.foxit.sdk.common.PrintDeviceSettingData.setDevice_width ( int  value)

Set 设备的宽度(以像素为单位)。

参数
[in]value设备的宽度(以像素为单位)。
返回
None.

◆ setOrientation()

com.foxit.sdk.common.PrintDeviceSettingData.setOrientation ( int  value)

Set 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。

参数
[in]value方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。
返回
None.

◆ setResolution()

com.foxit.sdk.common.PrintDeviceSettingData.setResolution ( int  value)

Set 设备的分辨率,以每英寸像素数为单位。

参数
[in]value设备的分辨率,以每英寸像素数为单位。
返回
None.