DynaPDF Manual - Page 549

Previous Page 548   Index   Next Page 550

Function Reference
Page 549 of 818
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.
LineTo
Syntax:
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.
LoadCMap
Syntax:
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.
However, dependencies to external CMaps are always removed if the font, that uses the external
CMap, is embedded. The parameter Embed is ignored in this case. This handling reduces the amount
of data that must be stored in a PDF file and the file can be viewed with Adobe's Acrobat or Reader
without installed Asian language pack that would otherwise be required.
 

Previous topic: LineAnnot, Measure lines

Next topic: Predefines CMaps


Start Chat