Please enable JavaScript to view this site.

TIFF Image Printer

Description

Sets any page trimming options in the IPNSession object. Trimming is similar to cropping except that all areas on the chosen sides (Left, Right, Top or Bottom) of the page that fall at or below the chosen intensity level will be  automatically removed.

To set a single trimming option use the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.

See the Trim Existing Margins by Color Intensity section for a more detailed explanation.

Syntax

expression.SetPageTrimOptions(TrimLeft, TrimTop, TrimRight, TrimBottom, TrimLevel)

where expression is an IPNSession object.

Parameters

Boolean TrimLeft

Pass as True to trim the left side of the page, False to ignore.

Boolean TrimTop

Pass as True to trim the top of the page, False to ignore.

Boolean TrimRight

Pass as True to trim the right side of the page, False to ignore.

Boolean TrimBottom

Pass as True to trim the bottom of the page, False to ignore.

Integer TrimLevel

This must be a value between 0 - 100. When the intensity is set all the way to the left on White(0), only pure white pixels will be removed. The higher the intensity level, the more colors will removed. If the intensity is set to Black(100), the entire page will in effect be "trimmed", and the trimming operation is abandoned.

Remarks

Use the following to set these options using SetProperty:

Method Parameter

SetProperty Parameters

TrimLeft

SectionName:

Processing

PropertyName:

Trim left

varValue:

VT_BOOL

TrimTop

SectionName:

Processing

PropertyName:

Trim top

varValue:

VT_BOOL

TrimRight

SectionName:

Processing

PropertyName:

Trim right

varValue:

VT_BOOL

TrimBottom

SectionName:

Processing

PropertyName:

Trim bottom

varValue:

VT_BOOL

TrimLevel

SectionName:

Processing

PropertyName:

Trim Threshold

varValue:

VT_I4

Range of 1-100

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

See Also: SetPageBrightness SetPageRotationOptions SetPageCropOn SetPageCropAreaOptions SetPageCropMarginOptions SetProperty