DynaPDF Manual - Page 787

Previous Page 786   Index   Next Page 788

Function Reference
Page 787 of 839
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.
SetSpaceWidthFactor
Syntax:
LBOOL pdfSetSpaceWidthFactor(
const PPDF* IPDF,
double Value)
The function sets the space width factor that is used by ExtractText() to determine whether the
distance between two text records or glyphs should be interpreted as space character.
Background:
PDF files do often not contain space characters. Depending on the font type, i.e. fixed pitch or
proportional fonts, different default widths are used during text extraction. However, the full space
width is mostly too large to find spaces. Therefore, the text extraction algorithm multiplies the
default space width with the space width factor to find suitable values.
The default value is 0.7. Increase the value if too many spaces occur in extracted text and decrease
the value if too few spaces were found.
 

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

Next topic: SetStrokeColor, SetStrokeColorEx