DynaPDF.GetEmbeddedFileCount
----------------------------

Returns the number of embedded files available in the PDF file.

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

MBS( "DynaPDF.GetEmbeddedFileCount"; PDF ) 

**MBS**( **"DynaPDF.GetEmbeddedFileCount";** /\* Returns the number of embedded files available in the PDF file. \*/  
**$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

Returns the number of embedded files available in the PDF file.  
Note that the number of embedded files from an external PDF file is available after the PDF file has been imported. Depending of the used import flags embedded files can be excluded from import. See [DynaPDF.SetImportFlags](DynaPDFSetImportFlags.md), or [DynaPDF.ImportPDFFile](DynaPDFImportPDFFile.md) for further information.  
See also [GetEmbeddedFileCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetEmbeddedFileCount.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.CheckEmbeddedFileCheckSum](DynaPDFCheckEmbeddedFileCheckSum.md)
- [DynaPDF.DeleteEmbeddedFile](DynaPDFDeleteEmbeddedFile.md)
- [DynaPDF.GetEmbeddedFile](DynaPDFGetEmbeddedFile.md)
- [DynaPDF.GetEmbeddedFileAsContainer](DynaPDFGetEmbeddedFileAsContainer.md)
- [DynaPDF.GetEmbeddedFileAsJSON](DynaPDFGetEmbeddedFileAsJSON.md)
- [DynaPDF.GetEmbeddedFilesAsJSON](DynaPDFGetEmbeddedFilesAsJSON.md)
- [DynaPDF.GetImageFileCount](DynaPDFGetImageFileCount.md)
- [DynaPDF.ImportPDFFile](DynaPDFImportPDFFile.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetImportFlags](DynaPDFSetImportFlags.md)

### Example Databases

- [DynaPDF/Extract Attachments](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Extract%20Attachments.shtml#2ScriptAnchor_)
- [DynaPDF/PDF Attachments](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/PDF%20Attachments.shtml#7ScriptAnchor_)
- [DynaPDF/Shrink PDF pages](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Shrink%20PDF%20pages.shtml#4ScriptAnchor_)
- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Extract XML](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Extract%20XML.shtml#2ScriptAnchor_)

### Blog Entries

- [Electronic invoices in FileMaker](https://www.mbsplugins.de/archive/2025-03-06/Electronic_invoices_in_FileMak/monkeybreadsoftware_blog_filemaker)
- [Elektronische Rechnungen in FileMaker](https://www.mbsplugins.de/archive/2025-03-04/Elektronische_Rechnungen_in_Fi/monkeybreadsoftware_blog_filemaker)
- [Extract invoice for ZUGFeRD and Facture-X](https://www.mbsplugins.de/archive/2024-09-20/Extract_invoice_for_ZUGFeRD_an/monkeybreadsoftware_blog_filemaker)
- [PDF Attachments in FileMaker with DynaPDF](https://www.mbsplugins.de/archive/2024-01-29/PDF_Attachments_in_FileMaker_w/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.3pr11](https://www.mbsplugins.de/archive/2014-09-14/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2018, Seite 26](https://filemaker-magazin.de/neuigkeit/3981-Appetithappen-FMM_201801)

This function checks for a license.

Created 11st September 2014 , last changed 9th November 2021

  
[DynaPDF.GetEmbeddedFileAsJSON](DynaPDFGetEmbeddedFileAsJSON.md) - [DynaPDF.GetEmbeddedFilesAsJSON](DynaPDFGetEmbeddedFilesAsJSON.md)

[HTML Version](DynaPDFGetEmbeddedFileCount.shtml)