DynaPDF.SetReplaceICCProfile
----------------------------

Sets the replace ICC profile path.

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

MBS( "DynaPDF.SetReplaceICCProfile"; PDF; ICCProfileType; Path ) 

**MBS**( **"DynaPDF.SetReplaceICCProfile";** /\* Sets the replace ICC profile path. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$ICCProfileType**; /\* The profile type. Can be Gray, RGB, CMYK or Lab.e.g. "Gray" \*/   
**$Path**) /\* The new native path.e.g. "c:/Windows/System32/spool/drivers/color/gray\_gamma2.2.icm" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| ICCProfileType | The profile type. Can be Gray, RGB, CMYK or Lab. | "Gray" |
| Path | The new native path. | "c:/Windows/System32/spool/drivers/color/gray\_gamma2.2.icm" |

### Result

Returns OK or error.

### Description

Sets the replace ICC profile path.  
The plugin manages a list of replacement profiles which the DynaPDF library can query with the OnReplaceICCProfile callback. Needed for [DynaPDF.CheckConformance](DynaPDFCheckConformance.md).  
This function fills the list, so the plugin can return the right profile for the right type when needed.  
See also [SetReplaceICCProfile](https://www.monkeybreadsoftware.com/DynaPDF-Manual/ReplaceICCProfile.shtml) function in DynaPDF manual.

### Examples

Set gray profile:

 MBS ( "DynaPDF.SetReplaceICCProfile"; $pdf ; "gray"; "c:/Windows/System32/spool/drivers/color/gray\_gamma2.2 .icm" )  
Set RGB profile:

 MBS ( "DynaPDF.SetReplaceICCProfile"; $pdf ; "RGB"; "c:/Windows/System32/spool/drivers/color/sRGB Color Space Profile.icm" )  
Set CMYK profile:

 MBS ( "DynaPDF.SetReplaceICCProfile"; $pdf ; "gray"; "c:/Windows/System32/spool/drivers/color/EuropeISOCoatedFOGRA27.icc" )  
### See also

- [DynaPDF.CheckConformance](DynaPDFCheckConformance.md)
- [DynaPDF.GetReplaceICCProfile](DynaPDFGetReplaceICCProfile.md)
- [DynaPDF.GetReplaceICCProfileData](DynaPDFGetReplaceICCProfileData.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetReplaceICCProfileData](DynaPDFSetReplaceICCProfileData.md)

### Release notes

- **Version 10.5**
    - Fixed memory leak in [DynaPDF.SetReplaceICCProfileData](https://www.mbsplugins.eu/DynaPDFSetReplaceICCProfileData.shtml) function.
- **Version 7.5**
    - Added [DynaPDF.GetReplaceICCProfileData](http://www.mbsplugins.eu/DynaPDFGetReplaceICCProfileData.shtml) and [DynaPDF.SetReplaceICCProfileData](http://www.mbsplugins.eu/DynaPDFSetReplaceICCProfileData.shtml).
- **Version 7.4**
    - Using [DynaPDF.SetReplaceICCProfile](http://www.mbsplugins.eu/DynaPDFSetReplaceICCProfile.shtml) for PDF/A conversion is now optional as we can use generic profiles if you don't provide ones.

### Blog Entries

- [MBS FileMaker Plugin, version 7.4pr6](https://www.mbsplugins.de/archive/2017-09-17/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.2 for OS X/Windows](https://www.mbsplugins.de/archive/2016-05-24/MBS_FileMaker_Plugin_62_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.2pr10](https://www.mbsplugins.de/archive/2016-05-20/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

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

This function checks for a license.

Created 8th March 2016 , last changed 30th September 2017

  
[DynaPDF.SetRenderingIntent](DynaPDFSetRenderingIntent.md) - [DynaPDF.SetReplaceICCProfileData](DynaPDFSetReplaceICCProfileData.md)

[HTML Version](DynaPDFSetReplaceICCProfile.shtml)