DynaPDF Manual - Page 768

Previous Page 767   Index   Next Page 769

Function Reference
Page 768 of 818
SetSeparationInfo
Syntax:
LBOOL pdfSetSeparationInfo(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// Separation color space handle
The function sets the separation info of the current open page. The parameter Handle must be a valid
handle of a Separation color space.
Remarks:
In high-end printing workflows, pages are ultimately produced as sets of separations, one per
colorant. Ordinarily, each page in a PDF file is treated as a composite page that paints graphics
objects using all the process colorants and perhaps some spot colorants as well. In other words, all
separations for a page are generated from a single PDF description of that page.
In some workflows, however, pages are pre-separated before generating the PDF file. In a pre-
separated PDF file, the separations for a page are described as separate page objects, each painting
only a single colorant (usually specified in the DeviceGray color space). When this is done,
additional information is needed to identify the actual colorant associated with each separation and
to group together the page objects representing all the separations for a given page. This
information is contained in the separation info of each page object.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetStrokeColor
Syntax:
LBOOL pdfSetStrokeColor(
const PPDF* IPDF, // Instance pointer
UI32 Color)
// Color value defined in the current color space
The function sets the stroke color. The stroke color is also used by text objects if the text rendering
mode is dmStroke or dmFillStroke (see SetTextDrawMode() for further information).
The color value must be defined in the current color space. CMYK colors can be constructed with
the macro PDF_CMYK() or with the function CMYK() which is available in most programming
languages. RGB colors can be constructed with the macro PDF_RGB() or with the function RGB()
which is available in most programming languages.
If the color space contains more than 4 color components use SetStrokeColorEx() instead.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetResolution, SetSaveNewImageFormat, SetScreenRes (Rendering Engine)

Next topic: SetStrokeColorEx, SetStrokeColorF


Start Chat