DynaPDF.AddOutputIntentEx
-------------------------

Adds an ICC profile to the PDF file like AddOutputIntent but accepts a file as a container.

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

MBS( "DynaPDF.AddOutputIntentEx"; PDF; Container ) 

**MBS**( **"DynaPDF.AddOutputIntentEx";** /\* Adds an ICC profile to the PDF file like AddOutputIntent but accepts a file as a container. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Container**) /\* The container with the ICC Profile as file content. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Container | The container with the ICC Profile as file content. |  |

### Result

Returns handle of the Rendering Intent object or error.

### Description

Adds an ICC profile to the PDF file like AddOutputIntent but accepts a file as a container.  
see also [DynaPDF.AddOutputIntent](DynaPDFAddOutputIntent.md).  
See also [AddOutputIntentEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/AddOutputIntentEx.shtml) function in DynaPDF manual.

### Examples

Check conformance and add required output intents:

 #Check if this PDF conforms to PDF/A-1b 2005   
Set Variable \[$c ; Value:MBS ("[DynaPDF.CheckConformance](DynaPDFCheckConformance.md)"; $pdf ; "PDFA 1b 2005")\]  
If \[$c = 1\]  
 # A RGB ICC profile must be added to the document  
 Set Variable \[$r ; Value:MBS ("DynaPDF.AddOutputIntentEx"; $pdf ; ZUGFeRD Invoice::RGB ICC Profile)\]  
Else If \[$c = 2\]  
 # A CMYK ICC profile must be added to the document  
 Set Variable \[$r ; Value:MBS ("DynaPDF.AddOutputIntentEx"; $pdf ; ZUGFeRD Invoice::CMYK ICC Profile)\]  
Else If \[$c = 3\]  
 # A Gray, RGB, or CMYK ICC profile must be added to the document   
 Set Variable \[$r ; Value:MBS ("DynaPDF.AddOutputIntentEx"; $pdf ; ZUGFeRD Invoice::RGB ICC Profile)\]  
End If  
### See also

- [DynaPDF.AddOutputIntent](DynaPDFAddOutputIntent.md)
- [DynaPDF.CheckConformance](DynaPDFCheckConformance.md)
- [DynaPDF.GetOutputIntent](DynaPDFGetOutputIntent.md)
- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 14.5**
    - Improved [DynaPDF.GeneratePreview](https://www.mbsplugins.eu/DynaPDFGeneratePreview.shtml), [DynaPDF.ReadImageResolution](https://www.mbsplugins.eu/DynaPDFReadImageResolution.shtml), [DynaPDF.ReadImageFormat](https://www.mbsplugins.eu/DynaPDFReadImageFormat.shtml), [DynaPDF.InsertImage](https://www.mbsplugins.eu/DynaPDFInsertImage.shtml), [DynaPDF.AttachFileContainer](https://www.mbsplugins.eu/DynaPDFAttachFileContainer.shtml), [DynaPDF.AddOutputIntentEx](https://www.mbsplugins.eu/DynaPDFAddOutputIntentEx.shtml), [DynaPDF.CreateICCBasedColorSpaceContainer](https://www.mbsplugins.eu/DynaPDFCreateICCBasedColorSpaceContainer.shtml) and [DynaPDF.OpenPDFFromContainer](https://www.mbsplugins.eu/DynaPDFOpenPDFFromContainer.shtml) to return proper error if container is empty.

### Example Databases

- [DynaPDF/Convert to PDFA](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Convert%20to%20PDFA.shtml#1ScriptAnchor_)
- [DynaPDF/Create Text as PDFA](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Create%20Text%20as%20PDFA.shtml#2ScriptAnchor_)
- [DynaPDF/Scan with WIA to PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Scan%20with%20WIA%20to%20PDF.shtml#12ScriptAnchor_)
- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Invoice](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Invoice.shtml#2ScriptAnchor_)
- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Rechnung erstellen](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Rechnung%20erstellen.shtml#9ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 14.5pr8](https://www.mbsplugins.de/archive/2024-11-08/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [FileMaker with ZUGFeRD 2.0 and Factur-X](https://www.mbsplugins.de/archive/2019-06-14/FileMaker_with_ZUGFeRD_20_and_/monkeybreadsoftware_blog_filemaker)
- [How to Convert a PDF document to a PDF/A](https://www.mbsplugins.de/archive/2019-03-18/How_to_Convert_a_PDF_document_/monkeybreadsoftware_blog_filemaker)
- [Creating PDF/A in FileMaker with ZUGFeRD standard](https://www.mbsplugins.de/archive/2018-04-05/Creating_PDFA_in_FileMaker_wit/monkeybreadsoftware_blog_filemaker)
- [Creating PDF/A in FileMaker with ZUGFeRD standard](https://www.mbsplugins.de/archive/2017-03-07/Creating_PDFA_in_FileMaker_wit/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.4pr9](https://www.mbsplugins.de/archive/2014-11-05/MBS_Filemaker_Plugin_version_4/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 3th November 2014 , last changed 16th August 2016

  
[DynaPDF.AddOutputIntent](DynaPDFAddOutputIntent.md) - [DynaPDF.AddValToChoiceField](DynaPDFAddValToChoiceField.md)

[HTML Version](DynaPDFAddOutputIntentEx.shtml)