Foxit PDF SDK
fsdk.PrintDeviceSettingData Class Reference

Public Member Functions

def GetCopies ()
 Get the number of copies to be printed. More...
 
def GetDevice_height ()
 Get the height of the device in pixels. More...
 
def GetDevice_margin ()
 Get the page margins of the device. More...
 
def GetDevice_width ()
 Get the width of the device in pixels. More...
 
def GetOrientation ()
 Get orientation flag. More...
 
def GetResolution ()
 Get the resolution of the device in pixels per inch. More...
 
def Set (device_width, device_height, device_margin, orientation, resolution, copies)
 Set value.
More...
 
def SetCopies (value)
 Set the number of copies to be printed. More...
 
def SetDevice_height (value)
 Set the height of the device in pixels. More...
 
def SetDevice_margin (value)
 Set the page margins of the device. More...
 
def SetDevice_width (value)
 Set the width of the device in pixels. More...
 
def SetOrientation (value)
 Set orientation flag. More...
 
def SetResolution (value)
 Set the resolution of the device in pixels per inch. More...
 

Detailed Description

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

See also
Renderer

Member Function Documentation

◆ GetCopies()

fsdk.PrintDeviceSettingData.GetCopies ( )

Get the number of copies to be printed.

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

◆ GetDevice_height()

fsdk.PrintDeviceSettingData.GetDevice_height ( )

Get the height of the device in pixels.

Returns
The height of the device in pixels.

◆ GetDevice_margin()

fsdk.PrintDeviceSettingData.GetDevice_margin ( )

Get 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.
Returns
The page margins of the device.

◆ GetDevice_width()

fsdk.PrintDeviceSettingData.GetDevice_width ( )

Get the width of the device in pixels.

Returns
The width of the device in pixels.

◆ GetOrientation()

fsdk.PrintDeviceSettingData.GetOrientation ( )

Get orientation flag.

Returns
Orientation flag. Please refer to values starting from and this should be one of these values.

◆ GetResolution()

fsdk.PrintDeviceSettingData.GetResolution ( )

Get the resolution of the device in pixels per inch.

Returns
The resolution of the device in pixels per inch.

◆ Set()

def fsdk.PrintDeviceSettingData.Set (   device_width,
  device_height,
  device_margin,
  orientation,
  resolution,
  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 and this should be one of these values.
[in]resolutionThe resolution of the device in pixels per inch.
[in]copiesThe number of copies to be printed. This parameter only has an effect on PostScrip files.
Returns
None.

◆ SetCopies()

fsdk.PrintDeviceSettingData.SetCopies (   value)

Set the number of copies to be printed.

Parameters
[in]valueThe number of copies to be printed. This parameter only has an effect on PostScrip files.
Returns
None.

◆ SetDevice_height()

fsdk.PrintDeviceSettingData.SetDevice_height (   value)

Set the height of the device in pixels.

Parameters
[in]valueThe height of the device in pixels.
Returns
None.

◆ SetDevice_margin()

fsdk.PrintDeviceSettingData.SetDevice_margin (   value)

Set 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.
Parameters
[in]valueThe page margins of the device.
Returns
None.

◆ SetDevice_width()

fsdk.PrintDeviceSettingData.SetDevice_width (   value)

Set the width of the device in pixels.

Parameters
[in]valueThe width of the device in pixels.
Returns
None.

◆ SetOrientation()

fsdk.PrintDeviceSettingData.SetOrientation (   value)

Set orientation flag.

Parameters
[in]valueOrientation flag. Please refer to values starting from and this should be one of these values.
Returns
None.

◆ SetResolution()

fsdk.PrintDeviceSettingData.SetResolution (   value)

Set the resolution of the device in pixels per inch.

Parameters
[in]valueThe resolution of the device in pixels per inch.
Returns
None.