DynaPDF Manual - Page 519

Previous Page 518   Index   Next Page 520

Function Reference
Page 519 of 777
Measure lines
A measure line is an extended line annotation that has additional properties. To create a measure
line create first the line annotation and set then the measure line specific properties with
The parameter LineWidth must be in the range 0 through 12 units. Values outside the valid range will
be adjusted to the nearest allowed value. A zero line width produces a 1 pixel wide line.
The line end styles can be changed if necessary with SetAnnotLineEndStyle().
Return values:
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
LBOOL pdfLineTo(
const PPDF* IPDF, // Instance pointer
double PosX,
// X-Coordinate of ending point
double PosY)
// Y-Coordinate of ending point
The function draws a path from the current position up to the specified point. The start point must
be set with another vector graphic function beforehand, such as MoveTo() or other functions which
draw an open path segment.
In PDF all vector graphics are defined as paths, a path is invisible as long it was not stroked, filled or
both. See also Path construction and Painting.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SI32 pdfLoadCMap(
const PPDF* IPDF,
// Instance pointer
const char* CMapName, // CMap name
LBOOL Embed)
// See description below
The function loads an external CMap file into memory so that it can be used with OpenType or
TrueType fonts. The returned CMap handle is a required parameter of the function SetCIDFont().
Embedding CMap Files
The CMap should be embedded if it is not predefined or if the supplement number is higher than
supported in the viewer version to which compatibility is required.

Previous topic: LineAnnot

Next topic: Predefines CMaps