DynaPDF.SetResolution
---------------------

Sets the image resolution.

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

MBS( "DynaPDF.SetResolution"; PDF; Value ) 

**MBS**( **"DynaPDF.SetResolution";** /\* Sets the image resolution. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Value**) /\* Image resolution in DPI.e.g. 150 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Value | Image resolution in DPI. | 150 |

### Result

Returns OK on success.

### Description

Sets the image resolution.  
The function sets the resolution in DPI (Dots per Inch), in which images are stored by DynaPDF. The property will be ignored if the property SaveNewImageFormat was set to false. 1 bit images are always stored in the original resolution. The image resolution must be in the range 72 to 2048 DPI.  
Default value = 150 (DPI)  
See also [SetResolution](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetResolution.shtml) function in DynaPDF manual.

### Examples

Limit images to a maximum of 300 dpi:

 MBS ( "DynaPDF.SetResolution"; $PDF ; 300 )  
### See also

- [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)
- [DynaPDF.GetResolution](DynaPDFGetResolution.md)
- [DynaPDF.InsertImage](DynaPDFInsertImage.md)
- [DynaPDF.InsertImageFile](DynaPDFInsertImageFile.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.ReadImageFormat](DynaPDFReadImageFormat.md)
- [DynaPDF.SetSaveNewImageFormat](DynaPDFSetSaveNewImageFormat.md)

### Example Databases

- [DynaPDF/Picture to PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Picture%20to%20PDF.shtml#5ScriptAnchor_)
- [DynaPDF/Scan with WIA to PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Scan%20with%20WIA%20to%20PDF.shtml#24ScriptAnchor_)
- [DynaPDF/Tables](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Tables.shtml#2ScriptAnchor_)

### Blog Entries

- [Page Layouting in DynaPDF](https://www.mbsplugins.de/archive/2024-04-05/Page_Layouting_in_DynaPDF/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.SetReplaceICCProfileData](DynaPDFSetReplaceICCProfileData.md) - [DynaPDF.SetSaveNewImageFormat](DynaPDFSetSaveNewImageFormat.md)

[HTML Version](DynaPDFSetResolution.shtml)