LoadOutputIntentProfile
Documenteigenschappen, Naleving
Beschrijving
Vervangt het meegeleverde sRGB ICC-profiel dat door de geselecteerde OutputIntent wordt gebruikt door een extern profiel
Roep eerst SetPDFAMode aan om het OutputIntent-skelet aan te maken, en daarna deze functie wanneer het archiefprofiel CMYK, grijswaarden of een custom RGB-profiel moet zijn in plaats van de ingebouwde sRGB-stream
Syntaxis
Delphi
Function TPDFlib.LoadOutputIntentProfile(Const FileName: WideString; Const ColorSpace: AnsiString): Integer;
ActiveX
Function PDFlib::LoadOutputIntentProfile(FileName As String, ColorSpace As String) As Long
Beschikbaar op IPDFlibrary5 vanaf type library-versie 3.6
DLL
int DLLoadOutputIntentProfile(int InstanceID, const wchar_t* FileName, const char* ColorSpace);
int DLLoadOutputIntentProfileA(int InstanceID, const char* FileName, const char* ColorSpace);
Parameters
| FileName | Pad naar het ICC-profielbestand |
|---|---|
| ColorSpace | Te declareren device class van het uitvoerprofiel, zoals DeviceRGB, DeviceCMYK of DeviceGray |
Retourwaarden
Retourneert 1 als het profiel in de bestaande OutputIntent is geladen. Retourneert 0 als het bestand niet kan worden gelezen, de kleurruimte niet wordt geaccepteerd of het document nog geen OutputIntent heeft
Opmerkingen
De profielheader moet de gevraagde kleurruimte beschrijven (CMYK voor DeviceCMYK, RGB voor DeviceRGB, GRAY voor DeviceGray); een niet-passend profiel wordt geweigerd en de methode geeft 0 terug. PDF/X-preflight past dezelfde controle toe op het ingesloten profiel en zijn /N-entry