Please enable JavaScript to view this site.

TIFF Image Printer

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

SectionName:

Advanced Features

PropertyName:

Units

varValue:

VT_BSTR, one of the following:

.01 Inches

1 Millimeters

 

Ignored if the units are specified in the strings below

CustomPaperHeight

SectionName:

Advanced Features

PropertyName:

Custom Paper Height

varValue:

VT_BSTR, one of the following:

25-8000000 (hundredths of an inch)

64-20000000 (tenths of a millimeter)

0.250in-80000in (inches)

0.640cm-200000.000cm (centimeters)

CustomPaperWidth

SectionName:

Advanced Features

PropertyName:

Custom Paper Width

varValue:

VT_BSTR, one of the following:

25-8000000 (hundredths of an inch)

64-20000000 (tenths of a millimeter)

0.250in-80000in (inches)

0.640cm-200000.000cm (centimeters)

PrinterMarginLeft

SectionName:

Advanced Features

PropertyName:

Printer Area Margin Left

varValue:

VT_BSTR, one of the following:

0-100 (hundredths of an inch)

0 -254 (tenths of a millimeter)

0in-1in (inches)

0cm-2.540cm (centimeters)

PrinterMarginTop

SectionName:

Advanced Features

PropertyName:

Printer Area Margin Top

varValue:

VT_BSTR, one of the following:

0-100 (hundredths of an inch)

0 -254 (tenths of a millimeter)

0in-1in (inches)

0cm-2.540cm (centimeters)

PrinterMarginRight

SectionName:

Advanced Features

PropertyName:

Printer Area Margin Right

varValue:

VT_BSTR, one of the following:

0-100 (hundredths of an inch)

0 -254 (tenths of a millimeter)

0in-1in (inches)

0cm-2.540cm (centimeters)

PrinterMarginBottom

SectionName:

Advanced Features

PropertyName:

Printer Area Margin Bottom

varValue:

VT_BSTR, one of the following:

0-100 (hundredths of an inch)

0 -254 (tenths of a millimeter)

0in-1in (inches)

0cm-2.540cm (centimeters)

Supported Printers: TIFF Image Printer, PDF Image Printer, Raster Image Printer

See Also: SetCustomPaperOn SetHardwareMargins SetProperty pnUnits