LoadICCProfile
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This method loads an ICC profile into a PDF document.

Syntax

LONG LoadICCProfile (
BSTR iccFileName
)
Parameters
iccFileName
Path to a file containing an ICC profile

Return value
Index of the profile that was loaded

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.

Equivalent in new interface: IPDFDocument4::AddColorSpace.

Example

How to Load an ICC Profile and Set It As Ouput 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