|
Foxit PDF SDK
|
Inherits Object.
Public Types | |
| enum | OrientationFlag { e_Portrait = 0, e_Landscape = 1 } |
| Enumeration for specifying the orientation of the printer. More... | |
Public Member Functions | |
| PrintDeviceSettingData () | |
| Constructor and set the default value. More... | |
| PrintDeviceSettingData (const PrintDeviceSettingData &settings) | |
| Constructor, with another print device setting data object. More... | |
| PrintDeviceSettingData (int device_width, int device_height, RectF device_margin, OrientationFlag orientation, int resolution, uint32 copies) | |
| Constructor, with parameters. More... | |
| PrintDeviceSettingData & | operator= (const PrintDeviceSettingData &settings) |
| Assign operator. More... | |
| void | Set (int device_width, int device_height, RectF device_margin, OrientationFlag orientation, int resolution, uint32 copies) |
| Set value. More... | |
Public Attributes | |
| uint32 | copies |
| The number of copies to be printed. This parameter only has an effect on PostScrip files. | |
| int | device_height |
| The height of the device in pixels. | |
| RectF | device_margin |
| The page margins of the device. More... | |
| int | device_width |
| The width of the device in pixels. | |
| OrientationFlag | orientation |
| Orientation flag. Please refer to values starting from OrientationFlag::e_Portrait and this should be one of these values. | |
| int | resolution |
| The resolution of the device in pixels per inch. | |
This class represents setting data for print device. This would be used in class Renderer.
|
inlineexplicit |
Constructor, with parameters.
| [in] | device_width | The width of the device in pixels. |
| [in] | device_height | The height of the device in pixels. |
| [in] | device_margin | The 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] | orientation | Orientation flag. Please refer to values starting from OrientationFlag::e_Portrait and this should be one of these values. |
| [in] | resolution | The resolution of the device in pixels per inch. |
| [in] | copies | The number of copies to be printed. This parameter only has an effect on PostScrip files. |
|
inline |
Constructor and set the default value.
By default, the pixel value of an A4 paper is set to 300 dpi (dots per inch).
|
inline |
Constructor, with another print device setting data object.
| [in] | settings | Another print device settings object. |
|
inline |
Assign operator.
| [in] | settings | Another print device setting data object, whose value would be assigned to current object. |
|
inline |
Set value.
| [in] | device_width | The width of the device in pixels. |
| [in] | device_height | The height of the device in pixels. |
| [in] | device_margin | The 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] | orientation | Orientation flag. Please refer to values starting from OrientationFlag::e_Portrait and this should be one of these values. |
| [in] | resolution | The resolution of the device in pixels per inch. |
| [in] | copies | The number of copies to be printed. This parameter only has an effect on PostScrip files. |
| RectF foxit::common::PrintDeviceSettingData::device_margin |
The page margins of the device.