DynaPDF Manual - Page 581
Previous Page 580 Index Next Page 582
Function Reference
Page 581 of 860
LineAnnot
Syntax:
SI32 pdfLineAnnot(
const PPDF* IPDF,
// Instance pointer
double x1,
// X-Coordinate of the start point
double y1,
// Y-Coordinate of the start point
double x2,
// X-Coordinate of the end point
double y2,
// Y-Coordinate of the end point
double LineWidth,
// Line width
TLineEndStyle Start,
// End line style of the start point
TLineEndStyle End,
// End line style of the end point
UI32 FillColor,
// Text and interiour color -> see description
UI32 StrokeColor,
// This is the line color
TPDFColorSpace CS,
// The color space in which colors are defined
const char* Author,
// Optional author
const char* Subject,
// Optional subject
const char* Content)
// Optional content or caption of a measure line
typedef enum
{
leNone,
leButt,
leCircle,
leClosedArrow,
leDiamond,
leOpenArrow,
leRClosedArrow,
leROpenArrow,
leSlash,
leSquare
}TLineEndStyle;
The function creates a line annotation. The simplest form of a line annotation represents a simple
straight line that has an associated PopUp annotation to display the string Content in a floating
window.
The initial window state of the associated PopUp annotation is closed by default but the state can be
changed with SetAnnotOpenState() if necessary.
The coordinates are interpreted in current user space. Any transformation that was applied on the
coordinate system will be taken into account.
The parameter FillColor is only used if the line end style of the start or end point has an interior that
can be filled. The special constant NO_COLOR represents a transparent interior.
The stroke color is required and must not be set to NO_COLOR.
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
SetLineAnnotParms().
Previous topic: IsEmptyPage, IsWrongPwd
Next topic: LineTo, LoadCMap, Embedding CMap Files