DynaPDF.GetImageFileCount
-------------------------

The function returns the number of images contained in a multi-page image.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [12.4](newinversion124.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetImageFileCount"; PDF ) 

**MBS**( **"DynaPDF.GetImageFileCount";** /\* The function returns the number of images contained in a multi-page image. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns number or error.

### Description

The function returns the number of images contained in a multi-page image.   
At time of publication TIFF images are supported only.   
  
If the function succeeds the return value is the number of images inside the image file. If the function fails the returns an error code.  
See also [GetImageFileCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetImageCount.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetEmbeddedFileCount](DynaPDFGetEmbeddedFileCount.md)
- [DynaPDF.GetImageContainerCount](DynaPDFGetImageContainerCount.md)
- [DynaPDF.GetImageCount](DynaPDFGetImageCount.md)
- [DynaPDF.GetImportPageCount](DynaPDFGetImportPageCount.md)
- [DynaPDF.GetInFieldCount](DynaPDFGetInFieldCount.md)
- [DynaPDF.GetPageAnnotCount](DynaPDFGetPageAnnotCount.md)
- [DynaPDF.GetPageFieldCount](DynaPDFGetPageFieldCount.md)
- [DynaPDF.GetPageLabelCount](DynaPDFGetPageLabelCount.md)
- [DynaPDF.New](DynaPDFNew.md)

### Blog Entries

- [Top 10 from the MBS Plugin in 2022](https://www.mbsplugins.de/archive/2022-12-29/Top_10_from_the_MBS_Plugin_in_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 12.4](https://www.mbsplugins.de/archive/2022-09-27/MBS_FileMaker_Plugin_124/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 2nd September 2022 , last changed 2nd September 2022

  
[DynaPDF.GetImageCount](DynaPDFGetImageCount.md) - [DynaPDF.GetImportDocInfo](DynaPDFGetImportDocInfo.md)

[HTML Version](DynaPDFGetImageFileCount.shtml)