PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllLoads an ICC profile into PDF document.
|
| LONG LoadICCProfile ( BSTR iccFileName ) |
Parameters
iccFileName
Path to file with ICC profile.
Return value
Loaded profile index.
Remarks
LoadICCProfile loads an ICC profile from a file with iccFileName into PDF document and returns the index of the profile. This index can be used later with color-related methods. Supported ICC profile types: RGB, CMYK.
The returned value can be used in PDFPAGE_SetColorSpace.
Analogue in new interface: IPDFDocument4::AddColorSpace.
Example
How to load ICC profile and set it as output intent.
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
profile := PDF.LoadICCProfile('AdobeRGB1998.icc');
PDF.SetPDFAOutputIntent(profile);
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
LONG profile = PDF->LoadICCProfile("AdobeRGB1998.icc");
PDF->SetPDFAOutputIntent(profile);
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
long profile = PDF.LoadICCProfile("AdobeRGB1998.icc");
PDF.SetPDFAOutputIntent(profile);
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
profile = PDF.LoadICCProfile("AdobeRGB1998.icc")
PDF.SetPDFAOutputIntent profile
PDF.EndDoc
See Also
Reference


