Description
Sets a custom paper size for the output file. Custom paper size consists of the width and height and top, left, right and bottom printer area margins for the new paper size. You can enter units with up to three digits of accuracy, or to an eighth of an inch (0.125in or 0.318cm).
These settings are only applied when custom paper size is enabled. The combined Left and Right printer area margins must be less than the Width of the custom paper. The combined Top and Bottom printer area margins must be less than the Height of the custom paper.
Custom paper options can also be set using the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.
For a more detailed explanation of the custom paper options, see the Printer Overrides options in the conversion profile.
Syntax
expression.SetCustomPaperOn(Units, CustomPaperWidth, CustomPaperHeight,
PrinterMarginLeft, PrinterMarginTop,
PrinterMarginRight, PrinterMarginBottom)
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 CustomPaperWidth
The width of the new paper size, in units to match Units.
Double CustomPaperHeight
The height of the new paper size, in units to match Units.
Double PrinterMarginLeft
The size of the left printer margin, in units to match Units
Double PrinterMarginTop
The size of the top printer margin, in units to match Units.
Double PrinterMarginRight
The size of the right printer margin, in units to match Units.
Double PrinterMarginBottom
The size of the bottom printer margin, in units to match Units.
Remarks
Use the following to set this option using SetProperty:
Method Parameter |
SetProperty Parameters |
||||||
---|---|---|---|---|---|---|---|
Units |
|
||||||
CustomPaperHeight |
|
||||||
CustomPaperWidth |
|
||||||
PrinterMarginLeft |
|
||||||
PrinterMarginTop |
|
||||||
PrinterMarginRight |
|
||||||
PrinterMarginBottom |
|
Supported Printers: TIFF Image Printer, PDF Image Printer, Raster Image Printer
See Also: SetCustomPaperOn SetHardwareMargins SetProperty pnUnits