Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  

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 paid license.

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


DynaPDF.CreateICCBasedColorSpace - DynaPDF.CreateJSAction

💬 Ask a question or report a problem


Start Chat