<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

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. 

See Also

Reference
ScriptUtil Class
Compiled.EDD.Scripting Namespace