Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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 4.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.AddOutputIntentEx"; PDF; Container )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $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.

See also AddOutputIntentEx 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"; $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

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 3th November 2014, last changed 16th August 2016


DynaPDF.AddOutputIntent - DynaPDF.AddValToChoiceField