DynaPDF.Parser.DeleteAllImages
------------------------------

Delete all images.

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

MBS( "DynaPDF.Parser.DeleteAllImages"; PDF { ; DeleteInlines } ) 

**MBS**( **"DynaPDF.Parser.DeleteAllImages";** /\* Delete all images. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$DeleteInlines**) /\* Optional; Whether to delete inline images.  
Pass a boolean as 1 to delete or 0 to not delete inlines. Defaults to 1.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |  |
| DeleteInlines | Whether to delete inline images.   Pass a boolean as 1 to delete or 0 to not delete inlines. Defaults to 1. | 1 | Optional |

### Result

Returns OK or error.

### Description

Delete all images.  
This deletes inline and regular image drawing commands from the page.  
  
You need to call [DynaPDF.Parser.WriteToPage](DynaPDFParserWriteToPage.md) later to save changes back to page.  
### See also

- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.Parser.DeleteImage](DynaPDFParserDeleteImage.md)
- [DynaPDF.Parser.WriteToPage](DynaPDFParserWriteToPage.md)

### Release notes

- **Version 14.5**
    - Added [DynaPDF.Parser.DeleteAllImages](https://www.mbsplugins.eu/DynaPDFParserDeleteAllImages.shtml), [DynaPDF.Parser.DeleteImage](https://www.mbsplugins.eu/DynaPDFParserDeleteImage.shtml) and [DynaPDF.Parser.ListImages](https://www.mbsplugins.eu/DynaPDFParserListImages.shtml) functions.

### Example Databases

- [DynaPDF/Find and Replace Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Find%20and%20Replace%20Text.shtml#14ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 14.5pr6](https://www.mbsplugins.de/archive/2024-11-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 28th October 2024 , last changed 28th October 2024

  
[DynaPDF.Parser.Delete](DynaPDFParserDelete.md) - [DynaPDF.Parser.DeleteImage](DynaPDFParserDeleteImage.md)

[HTML Version](DynaPDFParserDeleteAllImages.shtml)