DynaPDF.GetEmbeddedFileAsJSON
-----------------------------

Queries one embedded file as JSON object.

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

MBS( "DynaPDF.GetEmbeddedFileAsJSON"; PDF; Index ) 

**MBS**( **"DynaPDF.GetEmbeddedFileAsJSON";** /\* Queries one embedded file as JSON object. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Index**) /\* The index of the embedded file. From 0 to [DynaPDF.GetEmbeddedFileCount](DynaPDFGetEmbeddedFileCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Index | The index of the embedded file. From 0 to [DynaPDF.GetEmbeddedFileCount](DynaPDFGetEmbeddedFileCount.md)-1. | 0 |

### Result

Returns JSON or error.

### Description

Queries one embedded file as JSON object.  
See TPDFFileSpec structure in DynaPDF help, which we convert to JSON for you.  
  
Keys include Buffer, BufSize, Compressed, Name, FileName, IsURL, UnicodeFileName, Description, FileSize, MIMEType, CreateDate, ModDate, CheckSum, Index.  
See also [GetEmbeddedFileAsJSON](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetEmbeddedFile.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetEmbeddedFile](DynaPDFGetEmbeddedFile.md)
- [DynaPDF.GetEmbeddedFileCount](DynaPDFGetEmbeddedFileCount.md)
- [DynaPDF.GetEmbeddedFilesAsJSON](DynaPDFGetEmbeddedFilesAsJSON.md)
- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 10.5**
    - Added [DynaPDF.GetAnnotationAsJSON](https://www.mbsplugins.eu/DynaPDFGetAnnotationAsJSON.shtml), [DynaPDF.GetColorSpaceAsJSON](https://www.mbsplugins.eu/DynaPDFGetColorSpaceAsJSON.shtml), [DynaPDF.GetEmbeddedFileAsJSON](https://www.mbsplugins.eu/DynaPDFGetEmbeddedFileAsJSON.shtml), [DynaPDF.GetFieldAsJSON](https://www.mbsplugins.eu/DynaPDFGetFieldAsJSON.shtml) and [DynaPDF.GetFontAsJSON](https://www.mbsplugins.eu/DynaPDFGetFontAsJSON.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 10.5](https://www.mbsplugins.de/archive/2020-11-23/New_in_MBS_FileMaker_Plugin_10/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.5pr1](https://www.mbsplugins.de/archive/2020-10-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Embrace JSON](https://www.mbsplugins.de/archive/2020-09-29/Embrace_JSON/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2020, Seite 26](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)

This function checks for a license.

Created 19th September 2020 , last changed 2nd September 2022

  
[DynaPDF.GetEmbeddedFileAsContainer](DynaPDFGetEmbeddedFileAsContainer.md) - [DynaPDF.GetEmbeddedFileCount](DynaPDFGetEmbeddedFileCount.md)

[HTML Version](DynaPDFGetEmbeddedFileAsJSON.shtml)