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

DynaPDF.SetReplaceICCProfileData

Sets the replace ICC profile data.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 7.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetReplaceICCProfileData"; PDF; ICCProfileType; ProfileData )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
ICCProfileType The profile type. Can be Gray, RGB, CMYK or Lab. "Gray"
ProfileData The container value with the profile data. MyTable::RGBProfile

Result

Returns OK or error.

Description

Sets the replace ICC profile data.
The plugin manages a list of replacement profiles which the DynaPDF library can query with the OnReplaceICCProfile callback. Needed for DynaPDF.CheckConformance.
This function fills the list, so the plugin can return the right profile for the right type when needed.

See also SetReplaceICCProfileData function in DynaPDF manual.

Examples

Set replacements for missing ICC profiles:

Set Variable [ $r ; Value: MBS("DynaPDF.SetReplaceICCProfileData"; $pdf; "rgb"; Create Text::RGB ICC Profile) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetReplaceICCProfile"; $pdf; "gray"; Create Text::Gray ICC Profile) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetReplaceICCProfileData"; $pdf; "cmyk"; Create Text::CMYK ICC Profile) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 30th September 2017, last changed 30th September 2017


DynaPDF.SetReplaceICCProfile - DynaPDF.SetResolution