Methods | ScriptUtil.GetImageFrameCount Method
Gets the number of frames in a multi-framed image file.
Syntax
C# Copy
public static int GetImageFrameCount( string imageFile )
Parameters
imageFile String
The image file to check.
Return Value
Int32
The number of frames (i.e. pages) in a image file.
Exceptions
| Exception | Condition |
|---|---|
| NotSupportedException | Thrown if the script library was not initialized correctly. |
Remarks
Use this to get the number of pages in a PDF or TIFF file.