DynaPDF.IsEmptyPage
-------------------

Checks whether a page is empty.

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

MBS( "DynaPDF.IsEmptyPage"; PDF ) 

**MBS**( **"DynaPDF.IsEmptyPage";** /\* Checks whether a page is empty. \*/  
**$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 1, 0 or error.

### Description

Checks whether a page is empty.   
The page which should be checked must be opened with the function [DynaPDF.EditPage](DynaPDFEditPage.md) beforehand. The function does not check whether the buffer size of a page is zero to determine whether a page is empty. Instead, the content stream will be parsed until a visible object can be found.   
If no visible object can be found the return value is 1. If a visible object can be found the return value is 0.   
See also [IsEmptyPage](https://www.monkeybreadsoftware.com/DynaPDF-Manual/IsEmptyPage.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.EditPage](DynaPDFEditPage.md)
- [DynaPDF.IsColorPage](DynaPDFIsColorPage.md)
- [DynaPDF.New](DynaPDFNew.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.5pr2](https://www.mbsplugins.de/archive/2016-10-10/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 6th February 2015 , last changed 5th October 2016

  
[DynaPDF.IsColorPage](DynaPDFIsColorPage.md) - [DynaPDF.IsInitialized](DynaPDFIsInitialized.md)

[HTML Version](DynaPDFIsEmptyPage.shtml)