TiffSaveMultiPageToFile Method

See Also     Examples     Applies To

Saves an editable multipage tiff image to a file.

Syntax

object.TiffSaveMultiPageToFile (nImageID, sFilePath, nModeCompression)

The TiffSaveMultiPageToFile syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nImageID Required. Long. GdPicture Image handle. The editable multipage tiff image to save as file.
sFilePath Required. String. The path to save the image.
nModeCompression Optional. Long. Default value is 2. Specifies type of compression 6:None, 5:RLE, 4:CCITT4, 3:CCITT3, 2:LZW.

Returns

Long. GdPictureStatus

Remarks

This function can only be used with an editable multipage tiff image.
To check if an image is an editable multipage tiff image you can use the TiffIsEditableMultiPage() function.
This function must only be used to save an editable multipage tiff image.

Category

Multipage TIFF Functions

Visual Basic Sample

Draw page number on each page of a multipage tiff image


Dim nCpt As Long
Dim nTiffImageID As Long
Dim nPageCount As Long

nTiffImageID = Object.TiffCreateMultiPageFromFile("input.tif")
nPageCount = Object.TiffGetPageCount(nTiffImageID)

For nCpt = 1 To nPageCount
    Call Object.TiffSelectPage(nTiffImageID, nCpt)
    Call Object.DrawText("Page " & CStr(nCpt) & " / " & CStr(nPageCount), 50, 50, 10)
Next nCpt

Call Object.TiffSaveMultiPageToFile(nTiffImageID, "output.tif")
Object.CloseImage (nTiffImageID)






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.