Click or drag to resize

ImageFileInsertPage Method

This method inserts one or more pages into the image file from the image file specified by the SrcImage parameter at the position specified by the Page parameter.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void InsertPage(
	int Page,
	ImageFile SrcImage,
	[OptionalAttribute] int SrcPage,
	[OptionalAttribute] IMF_FORMAT DstFormat
)

Parameters

Page
Type: SystemInt32
SrcImage
Type: Kofax.OmniPageCSDK.IproPlusImageFile
SrcPage (Optional)
Type: SystemInt32
DstFormat (Optional)
Type: Kofax.OmniPageCSDK.IproPlusIMF_FORMAT
Remarks

The SrcPage is an optional numeric parameter specifying which page or pages will be added. If it is unspecified or -1, all source pages are appended. If it is specified, the single page defined by SrcPage index is appended.

This method can only be used with multi-page image TIFF files. A further requirement is that the pages already in the multi-page TIFF file must be stored in one-strip format and the StripBytesCount TIFF tag must exist in the page header. TIFF image files created by the Capture SDK fulfill this requirement.

The DstFormat is an optional parameter of type IMF_FORMAT, which defines the compression method of the new page or pages. If DstFormat is unspecified and the source image is a TIFF, the compression method of the source page is used. If DstFormat is unspecified and the source image is not a TIFF, the FF_TIFLZW default compression method is used. The available values for this parameter are: FF_TIFNO, FF_TIFPB, FF_TIFHU, FF_TIFG31, FF_TIFG32, FF_TIFG4, FF_TIFLZW and FF_TIFJPGNEW.

See Also