See Also Examples Applies To
Selects a page of a multipage tiff image. The page can now be edited or saved to a different file.
Syntax
object.TiffSelectPage (nImageID, nPage)
The TiffSelectPage 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 multipage tiff image handle. (Can be an editable multipage tiff or a read only tiff image.) |
| nPage | Required. Long. page no between 1 and page count. |
Returns
Long. GdPictureStatus
Remarks
This function works with editable multipage tiff images and with multipage tiff images opened as read only.
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)