How to Retrieve the Current Colorspace Type
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
profile := PDF.LoadICCProfile('EuropeISOCoatedFOGRA27.icc');
PDF.PDFPAGE_SetColorSpace(profile);
txType := PDF.PDFPAGE_GetColorSpaceType();
{ txType should be equal to csICCBasedCMYK }
PDF.EndDoc;
// PDF object is supposed to be created
PDF.BeginDoc();
long profile = PDF.LoadICCProfile("EuropeISOCoatedFOGRA27.icc");
PDF.PDFPAGE_SetColorSpace(profile);
TxColorSpaceType txType = PDF.PDFPAGE_GetColorSpaceType();
// txType should be equal to TxColorSpaceType.csICCBasedCMYK
PDF.EndDoc;
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc();
profile = PDF.LoadICCProfile("EuropeISOCoatedFOGRA27.icc")
PDF.PDFPAGE_SetColorSpace profile
txType = PDF.PDFPAGE_GetColorSpaceType()
' txType should be equal to csICCBasedCMYK
PDF.EndDoc