THotPDF.RegisterSeparation 메서드

 

THotPDF.RegisterSeparation

THotPDF

 

Top

스폿 컬러 인쇄 워크플로를 위한 PDF 1.3+ Separation 색 공간(ISO 32000-1 8.6.6.4)을 선언합니다. 호출할 때마다 스폿 잉크 하나를 등록하고 자동 생성된 색 공간 이름(Sep1, Sep2, ...)을 반환하며, 이 이름은 THPDFPage.SetFillColorSpace / SetStrokeColorSpace + SetFillColor([tint]) / SetStrokeColor([tint])와 함께 사용할 수 있습니다.

 

Delphi syntax:

function RegisterSeparation(const ColorantName: AnsiString; const AlternateCS: AnsiString; const TintC1: array of Extended): AnsiString;

 

C++ syntax:

AnsiString RegisterSeparation(const AnsiString& ColorantName, const AnsiString& AlternateCS, const Extended* TintC1, int TintC1Count);

 

Description

Separation 색 공간을 쓰면 PDF가 스폿 잉크(예: Pantone 색)를 이름으로 참조할 수 있습니다. 규격을 준수하는 인쇄 장치는 실제 잉크를 사용하고, 화면 뷰어와 디지털 미리보기는 tint = 1.0에서 전달된 AlternateCS 색으로 폴백하며 tint = 0의 "잉크 없음"을 향해 선형으로 보간합니다.

 

ColorantName - 잉크 이름입니다(예: 'Pantone 185 C'). 공백은 PDF 1.7 7.3.5에 따라 출력 PDF name에서 #20으로 이스케이프됩니다. 그 밖의 PDF 구분자 문자(괄호, 대괄호, 슬래시, 퍼센트 기호)는 피하는 것이 좋습니다.

AlternateCS - 'DeviceGray' (1 component), 'DeviceRGB' (3), or 'DeviceCMYK' (4). Any other value raises an exception.

TintC1 - 최대 잉크 강도(tint = 1.0)에서의 대체 색 공간 성분입니다. 성분 수는 AlternateCS와 같아야 하며 값은 [0..1] 범위입니다. DeviceGray에서는 0 = 검정, 1 = 흰색이 관례이므로(이미지의 BlackIs1 기본값과 반대) 주의하세요.

 

반환 값: 자동 생성된 이름(Sep1, Sep2, ...)입니다. StrictVersionLock이 켜져 있고 현재 Version이 PDF 1.3 미만이면 빈 문자열을 반환합니다(그렇지 않으면 문서 버전이 1.3으로 자동 상향됩니다).

 

Code Example

// Register a Pantone-style spot ink backed by CMYK, paint four tint
// swatches showing the linear progression from no ink to full ink
var
  SpotName: AnsiString;
  T: Integer;
begin
  HPDF.Version := pdf14;
  HPDF.BeginDoc;
  SpotName := HPDF.RegisterSeparation(
    'Pantone 185 C',                 // ink name (spaces auto-escaped)
    'DeviceCMYK',                    // alternate CS for screen / digital
    [0.0, 0.95, 0.75, 0.0]);         // CMYK at tint = 1.0
  HPDF.CurrentPage.SetFillColorSpace(SpotName);
  for T := 1 to 4 do
  begin
    HPDF.CurrentPage.SetFillColor([T * 0.25]);
    HPDF.CurrentPage.Rectangle(60 + (T - 1) * 100, 100, 80, 60);
    HPDF.CurrentPage.Fill;
  end;
  HPDF.EndDoc;
end;

 

See Also

RegisterDeviceN, RegisterLabColorSpace, Version, PDF Filter Support