Description
Sets the hardware margin options on the IPNSession object.
The hardware margins option allows you to customize the size of the printer-supplied edge on your outputted files. Hardware margins cannot be larger than 1.00in (2.54cm) on each side of the paper. You can enter units with up to three digits of accuracy, or to an eighth of an inch (0.125in or 0.318cm).
To clear a single hardware margin option use the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.
For a more detailed explanation of hardware margins, see the Printer Overrides options in the conversion profile settings.
Syntax
expression.SetHardwareMargins(Units, HardwareMarginLeftRight, HardwareMarginTopBottom)
where expression is an IPNSession object.
Parameters
pnUnits Units
A pnUnits constant for the unit of measure used to enter any paper size options.
Double HardwareMarginLeftRight
The left and right hardwarre margin settings in units to match Units.
Double HardwareMarginTopBottom
The top and bottom hardware margin settings in units to match Units.
Remarks
Use the following to set these options using SetProperty:
Method Parameter |
SetProperty Parameters |
||||||
---|---|---|---|---|---|---|---|
Units |
|
||||||
HardwareMarginLeftRight |
|
||||||
HardwareMarginTopBottom |
|
Supported Printers: TIFF Image Printer, PDF Image Printer, Raster Image Printer
See Also: SetCustomPaperOn SetCustomPaperOptions SetProperty pnUnits