Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Enables color management for render functions.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 5.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
DestSpace | Destination color space. Can be DeviceRGB, DeviceCMYK or DeviceGray. Default is DeviceRGB. | "DeviceRGB" | Optional |
Flags | Flags for color management initialization. Can be Default or a combination of BPCompensation (1), CheckBlackPoint (2) or both (3). | "BPCompensation" | Optional |
DefInGray | Path to gray profile. You can pass empty text if you have no gray profile. |
"/Users/cs/Desktop/Generic Gray Profile.icc" | Optional |
DefInRGB | Path to RGB profile. You can pass empty text if you have no RGB profile. |
"/Users/cs/Desktop/Generic RGB Profile.icc" | Optional |
DefInCMYK | Path to CMYK profile. You can pass empty text if you have no CMYK profile. |
"/Users/cs/Desktop/Generic CMYK Profile.icc" | Optional |
DeviceProfile | Path to Device profile, must be compatible with the output color space. Default is sRGB. You can pass empty text if you have no device profile. |
Optional | |
SoftProof | Path to output profile for emulating output device. You can pass empty text if you have no soft proof profile. |
Optional |
Returns OK or error.
See also InitColorManagement function in DynaPDF manual.
Initialize with only a CMYK profile:
MBS("DynaPDF.InitColorManagement"; $pdf; "DeviceCMYK"; 3; ""; ""; "/Users/cs/Desktop/PDF_to_JPEG Test/Generic CMYK Profile.icc")
Initialize for output to CMYK:
MBS("DynaPDF.InitColorManagement"; $pdf; "DeviceCMYK";
3;
"/Users/cs/Desktop/PDF_to_JPEG Test/Generic Gray Profile.icc";
"/Users/cs/Desktop/PDF_to_JPEG Test/Generic RGB Profile.icc";
"/Users/cs/Desktop/PDF_to_JPEG Test/Generic CMYK Profile.icc";
"/Users/cs/Desktop/PDF_to_JPEG Test/Generic CMYK Profile.icc"
)
This function checks for a license.
Created 17th August 2015, last changed 21st September 2017
DynaPDF.ImportPageAsTemplate - DynaPDF.InitColorManagementEx