THotPDF.RegisterBlackGenerationState Method

Registers an extended graphics state that carries the black-generation and undercolor-removal functions applied while converting DeviceRGB paint to DeviceCMYK, both by the HotPDF page renderer's own separation-plate conversion and by a downstream rip, and returns the resource name that THPDFPage.SetGraphicsState selects

Declaration

function RegisterBlackGenerationState(BG, UCR: THPDFObject;
  BG2Default, UCR2Default: Boolean): AnsiString;

Unit

HPDFDoc

Parameters

NamePurpose
BGBlack-generation function dictionary, or nil to leave /BG2 out of the state
UCRUndercolor-removal function dictionary, or nil to leave /UCR2 out of the state
BG2DefaultWrites /BG2 /Default, which resets black generation to the function in effect at the start of the page
UCR2DefaultWrites /UCR2 /Default, which resets undercolor removal the same way

Return value

The generated ExtGState resource name, or an empty string when StrictVersionLock holds the document below PDF 1.3

Usage notes

Related APIs