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

DynaPDF.CreateICCBasedColorSpaceContainer

Creates an ICC-based color space based on a container.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.CreateICCBasedColorSpaceContainer"; PDF; Container )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Container The container value to use. $iccContainer

Result

Returns number or error.

Description

Creates an ICC-based color space based on a container.
Like DynaPDF.CreateICCBasedColorSpace, but reads data from container.

Examples

Create an ICC profile:

Set Variable [ $cs ; Value: MBS("DynaPDF.CreateICCBasedColorSpaceContainer"; $pdf; Create Text::RGB ICC Profile) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.SetExtColorSpace"; $PDF; $cs ) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetFillColor"; $pdf; 1; 0; 0) ]
Set Variable [ $r ; Value: MBS("DynaPDF.WriteText"; $pdf; 100; 100; "Some red text") ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 1st December 2022, last changed 1st December 2022


DynaPDF.CreateICCBasedColorSpace - DynaPDF.CreateJSAction